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.
Component | Default Property |
---|---|
Button | Title |
Check Box | Value |
Combo Box | Value |
Date | Value |
Document | Value |
Drop Combo Box | Value |
Drop Down | Value |
Generic | Title |
Group Box | Title |
Label | Title |
List Box | Value |
Long List | Value |
Picture | Picture |
Radio Button | Value |
Scroll Bar | Value |
Spin Button | Value |
SQL Data | None |
Tabbed Group | None |
Text Box | Value |
Timer | None |
Window | Title |
The code generated by the macro %%Prop behaves like an extrinsic function in M[UMPS], returning the value of the Property of the Object.
The specified Property may not be multiple-valued.
For fetching a property into a variable, consider using the %%Get command.
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 internal values must be used. These are given on the status-bar message when using the Value dropdown on the Property Bar. In the case of "Yes" and "No" the internal values are 1 and 0 respectively.
Q:%%Prop(Drinks.)=""
Quit if the value of the control
called "Drinks" has an empty value.
%%Set(BackColor,%%Prop(..Color))
Set the background color of the current
control equal to the background color of the current window.