Information Functions

IsArray Function

Returns True if a variable is an array

IsDate Function

Returns True if an expression can be converted to a date

IsEmpty Function

Returns True if a variant variable has not been initialized

IsNull Function

Returns True if an expression evaluates to Null

IsNumeric Function

Returns True if an expression can be evaluated as a number

IsObject Function

Returns True if a variable contains an object reference

Len Function

Returns the length of a variable

LenB Function

Returns the number of bytes needed to hold a given variable

RGB Function

Returns a number representing an RGB color value

ScriptEngine Function

Returns a string representing the scripting language in use

ScriptEngineBuildVersion Function

Returns VBScript’s build number

ScriptEngineMajorVersion Function

Returns VBScript’s major version number

ScriptEngineMinorVersion Function

Returns VBScript’s minor version number

TypeName Function

Returns the data subtype name of a variant variable

VarType Function

Returns a number representing the data subtype of a variant variable

Get VBScript in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.