|
|
|
|
- Overview
- Examples of application
How to use the indirection operators?
The indirection operators ( { }) are used to handle an object whose name is found in a variable. This allows you to build through programming the name of the object that will be used in a variable then to apply actions to find out or modify the characteristics of this object. The syntax is as follows:
{ VariableName, ObjectType }..PropertyName
where: - VariableName is a string variable containing the name of object to use.
- ObjectType is an indXXX constant representing the type of object to use (control, variable, window, etc.).
ControlName is string ControlName = "EDT_NAME" // Change the background color of control whose name is EDT_NAME {ControlName, indControl}..BackgroundColor = LightRed
// Clear the TEXT edit controls in a window nIndex is int = 1 sControlName is string sControlName = EnumControl(WIN_Table, nIndex) WHILE sControlName<>"" IF {sControlName, indControl}..Type = typText THEN {sControlName, indControl} = "" END nSub++ sControlName = EnumControl(WIN_Table, nIndex) END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|