version 6.5 (Modified)
The Object Properties commands act on the properties of objects present in forms. They enable you to change the appearance and behavior of the objects while using the forms to display records and in the Application environment.
Important: The scope of these commands is the form currently being used; changes disappear when you exit the form.
Accessing Objects using their Object Names or their Data Source Names
The Object Properties commands share the same generic syntax described here:
COMMAND NAME({*;} object { ; additional parameters specific to each command )
If you specify the optional * parameter, you indicate an object name (a string) in object.
Note: It is possible to use the @ character within that name if you want to address several objects of the form in one call. The following table shows examples of object names you can specify to this command.
Object Names | Objects affected by the call |
mainGroupBox | Only the object mainGroupBox. |
main@ | The objects whose name starts with "main". |
@GroupBox | The objects whose name ends with "GroupBox". |
@Group@ | The objects whose name contains "Group". |
main@Btn | The objects whose name starts with "main" and ends with "Btn". |
@ | All the objects present in the form. |
If you omit the optional * parameter, you indicate a field or a variable in object. In this case, you specify a field or variable reference (field or variable objects only) instead of a string.
Note: If you place several objects in a form that have different object names but which are associated with the same variable, 4D will apply commands to all of the objects, even if you have used the object name as parameter. For example, if a form contains three buttons named "Btn1", "Btn2" and "Btn3" that are each associated with the same variable var1, executing the ENABLE BUTTON(*;"Btn2") statement will trigger the activation of all three buttons.