GetVariableType
Description: | Returns the type, BASEVALUE, stored within a variable. |
Warning: | For use by advanced programmers only. Effective use of this function requires a thorough understanding of VTScada programming. |
Returns: | Integer or Structure. |
Usage: | Script Only. |
Function Groups: | Variable |
Related to: | SetVariableType |
Format: | GetVariableType(Variable) |
Parameters: |
Variable |
Required. Any expression for a variable. |
Comments: | If a structure is returned, the first element will be an integer giving the data type. In the case where the variable is a module, the remaining elements will be text strings giving the names of modules within the scope. |
Example:
Var = FindVariable(ParmList[I], Mod, 0, 0);
{ Retrieve any typing information }
ParmType = GetVariableType(Var);