A script-enabled browser is required for this page to function properly.

Setting Properties at Runtime

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:

SET_BLOCK_PROPERTY

SET_CANVAS_PROPERTY

SET_FORM_PROPERTY

SET_ITEM_PROPERTY

SET_LOV_PROPERTY

SET_MENU_ITEM_PROPERTY

SET_PARAMETER_ATTR

SET_RADIO_BUTTON_PROPERTY

SET_RECORD_PROPERTY

SET_RELATION_PROPERTY

SET_VIEW_PROPERTY

SET_WINDOW_PROPERTY

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

Comparing the properties of one object to another

Copying properties from one object to another