- 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:
{ NomVariable, TypeObjet }..NomPropriété
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.).
NomChamp is string NomChamp = "SAI_NOM" // On change la couleur de fond du champ dont le nom est SAI_NOM {NomChamp, indControl}..BackgroundColor = LightRed
// Vider uniquement les champs de saisie de type TEXTE dans une fenêtre nIndice is int = 1 sNomChamp is string sNomChamp = EnumControl(FEN_Table, nIndice) WHILE sNomChamp<>"" IF {sNomChamp, indControl}..Type = typText THEN {sNomChamp, indControl} = "" END nInd++ sNomChamp = EnumControl(FEN_Table, nIndice) END
This page is also available for…
|
|
|
|