Many object properties can be set programmatically at runtime. For example, each window object has a Visible property that can be set to either Yes or No to show and hide the window. At runtime, you can call the Built-in procedure SET_WINDOW_PROPERTY to show or hide the window dynamically, as shown here:
Set_Window_Property('my_window',VISIBLE, PROPERTY_ON);
The following Built-in procedures are available for setting object properties at runtime:
The Built-in procedure SET_ITEM_PROPERTY can be used to set the properties of any type of item, including buttons, text items, check boxes, radio groups, etc.
Note: Radio group items include individual radio buttons; use SET_ITEM_PROPERTY to set the properties of the radio group, and SET_RADIO_BUTTON_PROPERTY to set the properties of the individual buttons in the group.
Each Built-in SET procedure has a corresponding GET function that allows you to programmatically determine the current setting of an object's properties. The following example uses GET_WINDOW_PROPERTY to determine if a window is currently hidden (VISIBLE = FALSE). If the window is hidden, SET_WINDOW_PROPERTY is called to show the window.
If Get_Window_Property('my_window',VISIBLE) = 'FALSE'
THEN
Set_Window_Property('my_window',VISIBLE,PROPERTY_ON);
To determine if a particular property can be set programmatically, refer to the property descriptions in Online Help.
Setting properties of multiple selections