Update cookies preferences
Promotic

TypeName - function of language VBScript

Description:
Returns a string containing data type information about a variable.
In the PROMOTIC system it is better to use the Pm.GetVarType method.
Syntax:
String TypeName(Variant var)
Parameters:
var(Variant) any variable
Return value:
"Byte" - Byte value (1 byte)
"Integer" - integer value (2 bytes)
"Long" - integer value (4 bytes)
"Single" - Single-precision real number (4 bytes)
"Double" - Double-precision real number (8 bytes)
"Date" - time and/or date
"String" - Text string value
"Boolean" - Boolean value (true or false)
"Empty" - unitialized
"Null" - no valid data
"Object" - generic object
"Unknown" - Unknown object type
"Nothing" - object variable that doesn't yet refer to an object instance
Example:
VBScriptSelect and copy to clipboard

Dim sType, ArrayVar( 3), NullVar
NullVar = Null
sType = TypeName("VBScript")   ' Returns "String"
sType = TypeName(4)   ' Returns "Integer"
sType = TypeName(37.50)   ' Returns "Double"
sType = TypeName(Null)   ' Returns "Null"
sType = TypeName(ArrayVar)   ' Returns "Variant"
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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