PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Examples of application
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 by 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.)
See Indirection operators for more details.
Examples of application
ControlName is string
ControlName = "EDT_NAME"

// Change the background color of control whose name is EDT_NAME
{ControlName, indControl}..BrushColor = LightRed
// Clear the TEXT edit controls in a window
nSub is int = 1
sControlName is string

sControlName = EnumControl(WIN_Table, nSub)
WHILE sControlName<>""
IF {sControlName, indControl}..Type = typInputText THEN
{sControlName, indControl} = ""
END

nSub++
sControlName = EnumControl(WIN_Table, nSub)
END
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment