The following table shows the supported data types, including storage sizes and ranges.
Data type | Storage size | Range |
Byte (byte) | 1 byte | From 0 to 255. |
Boolean (logical) | 2 bytes | True or False. |
Integer (integer) | 2 bytes | From -32 768 to 32 767 |
Long (long integer) |
4 bytes | From -2 147 483 648 to 2 147 483 647. |
Single (single-precision floating point) |
4 bytes | From -3,402823E38 to -1,401298E-45 for negative
values; from 1,401298E-45 to 3,402823E38 for positive values. |
Double (double-precision floating point) |
8 bytes | From -1,79769313486232E308 to -4,94065645841247E-324 for negative values; from 4,94065645841247E-324 to 1,79769313486232E308 for positive values. |
Date (date and time) | 8 bytes | From 1 January 100 to 31 December 9999 |
Object (object) | 4 bytes | Address that refers to an object |
String (variable-length string) |
10 bytes + string length | From 0 up to approximately 2 billion (2^31) characters. |
String * n (FixStr, fixed-length string) |
String length | From 1 up to approximately 65 400 characters. |
Variant (numeric subtypes) |
16 bytes | Any numeric value within the Double range. |
Variant (string subtypes) |
22 bytes + string length | As for a variable-length string. |
See Also |