PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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?
AjaxNot available
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:
{ 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.).
For more details, see Indirection operators.
Examples of application
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 = typInputText THEN
{sControlName, indControl} = ""
END
 
nSub++
sControlName = EnumControl(WIN_Table, nIndex)
END
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment