TypeName - function of language VBScript

Returns a string that provides data type information about a variable.

For the purposes of PROMOTIC system, it is more usefull to use the method: Pm.GetVarType.

TypeName(var As Variant) As String
s = TypeName(var)
var(Variant) any variable
Return Values:
"Byte" - Byte value (1 byte)
"Integer" - Integer value (2 bytes)
"Long" - Long integer value (4 bytes)
"Single" - Single-precision floating-point value (4 bytes)
"Double" - Double-precision floating-point value (8 bytes)
"Date" - time and/or date
"String" - Character 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
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 8.3.26 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice