Promotic

VarType - function of language VBScript

Description:
Returns a value indicating the data type of the variable.
In the PROMOTIC system it is better to use the Pm.GetVarType method.
Syntax:
Integer VarType(Variant var)
Parameters:
var(Variant) Any variable
Return value:
Returns the values of VBScript constants of data types.
Note:
This function never returns the value for Array data type by itself. This value is always added to some other value to indicate an array of a particular type. The value for Variant data type is only returned if it has been added to the value for Array to indicate that the var parameter is an array. For example, the value returned for an array of the Integer type is calculated as 2 + 8192, i.e. 8194.
Example:
VBScriptSelect and copy to clipboard

Dim n
n = VarType(300)   ' Returns 2
n = VarType(#10/19/05#)   ' Returns 7
n = VarType("VBScript")   ' Returns 8
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.