Scripting data types

The prototype of each script function lists exactly how the function is called, using these data types.

Data typeMeaning
BOOLTrue or False.
booleanTrue or False.
BSTRA character string (eg. "swordfish").
IDispatchAn object reference.
longA 32-bit number (from -2147483647 to +2147483647).
shortA 16-bit number (from -32768 to +32767).
dateA date/time field.
VARIANTA Visual-Basic "variant" data type, which can hold different types of data. A variant can be "null", "empty", or contain a number, character string, or an array, amongst other things. You can use the Visual Basic "VarType" function to find exactly what sort of data is in a variant.
voidNo return value.

The safest way to test for "true" or "false" is to assume that zero (0) is false, and any other value is true.

Similarly, to supply the value "true" simply supply a 1, and to supply the value "false", supply the value 0.