ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
  • Overview
  • Examples of application
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
How to use the indirection operators?
Overview
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.).
For more details, see Indirection operators.
Examples of application
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
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment