Internally FastScript operates with the Variant type and is based on it. Nevertheless, you can use
the following predetermined types in your scripts:
Byte |
Same as Integer type
Word |
Integer |
Longint |
Cardinal |
TColor |
Boolean |
Boolean type
Real |
Same as Extended type
Single |
Double |
Extended |
TDate |
TTime |
TDateTime |
Char |
Char type
String |
String type
Variant |
Same as Variant type
Pointer |
WideString |
Array |
Array type
C++Script maps some types to standard types:
int, long = Integer
void = Integer
bool = Boolean
float = Extended
JScript has no types, all types are variants. BasicScript may have types (for example, dim i as
Integer), or may have no types and even no variable declaration. In this case a variable will have
Variant type.