The DataCAD Developer Network (DDN) is an online resource for information and support for DCAL® (DataCAD Applications Language) developers as well as anyone interested in creating fonts, toolbars, hatch patterns, or linetypes for use in DataCAD.

Moderator: pjdixit

#72078 by Jsosnowski
Sat Aug 12, 2017 8:35 pm
Using the AEC_MODL macro code as an example I discovered a small mystery. In the 'function door_main(act, precord, parguments)' menu the code assigns 'd: pdoor_type' as 'd := addr (g_d);' where 'g_d' is an interface level global record variable. All calls to other menus are activated using a call procedure such as:

Code: Select allprocedure call_door_unit_data(pw: pdoor_type; var iwant : wanttype);
  iwant := XdoorUnitData;

and assign 'd' with the code 'd := pdoortype (parguments);

My question is why is setargs() used to call each successor menu rather than doing a direct assignment using 'd := addr (g_d);' as inthe first level menu?

Who is online

Users browsing this forum: No registered users and 2 guests

About DataCAD Forum

The DataCAD Forum is a FREE online community we provide to enhance your experience with DataCAD.

We hope you'll visit often to get answers, share ideas, and interact with other DataCAD users around the world.


Software for AEC Professionals Since 1984