4. Working with Classes : How You Can Reference Objects : How You Can Set and Get Attributes
 
Share this page                  
How You Can Set and Get Attributes
Setting an attribute in 4GL may change the appearance or behavior of the object. For example, setting the value of the FileHandle attribute for the BitmapObject system class actually causes OpenROAD to load a bitmap image into the object.
Sometimes setting an attribute for one object affects other objects. For example, if you set the InputFocusField attribute of the FrameExec object, OpenROAD moves the input focus from the current field to the field you specify; doing so triggers appropriate Exit and Entry events for the fields.
Use an assignment statement to assign a new value to the attribute. The basic format is: