Returns the Select Program property value defined in the control.
|
Syntax:
|
ControlSelectProgram(control index)
|
Parameters:
|
control index – A numeric variable representing the control index in the list of all controls of all tasks in the Runtime tree. This value needs to be retrieved using the VarControlID function.
|
Returns:
|
A value representing the Select Program value of the control.
|
Note:
|
-
This function works only for controls with an attached variable.
-
If the control does not have a Select Program, the one assigned to the variable will be used up to the model level. If no program was found, the function will return 0.
-
If the control and the Select Program is defined in a host application, the return value will be in the format of xxxxx.yy, where xxxxx is the Select Program number and yy is the application generation of the host application. For example, program 12 in the host application will be returned as 12.01 where yy is 01, meaning the host application. A value of 02 means the application that contains the host application and so on.
-
This function is not supported in Web Client tasks.
|