ObjectProperty An object and property specification. Window and Control default to the current window and control. The property name, if omitted, defaults depending on the object type. See Default Properties.
Variable A local or global variable, may be subscripted. Default is the first 8 characters of the property name.
The macro %%Get retrieves the value of the Property of a control in a window (parameter ObjectProperty) and places that value into the a variable (parameter Variable).
If ObjectProperty is multiple-valued then the macro %%GetSel should be used instead, so that code will be generated to store the various values into an array descending from Variable.
If the value of a property needs to be used in an expression, the macro %%Prop should be used to reference that value.
Note that when manipulating the value of certain properties using the Property Bar symbolic names such as "Yes" and "No" are used. However when manipulating the value using macros the underlying values must be used. These are given in parentheses at the end of the symbolic name; in the case of "Yes" and "No" these are 1 and 0.
%%Get(Drinks.,DR)
Get the value of the control called
"Drinks" and place it in local variable
DR. If the control called "Drinks"
is a list accepting multiple values, the array DR()
will be filled with the current selections.
%%Get(MyWin..Color,BC)
Set local variable BC
to the value for the background color of the window called
"MyWin"