Xojo Data Types

Data TypeBytes UsedNumber Range
Array
Auto
Boolean10 to 1
Byte10 to 255
Color8&c00000000 to &cFFFFFFFF (&cRRGGBBAA)
CString1 per char + 1
Currency8-922337203685477.5808 to 922337203685477.5807
Double8Max value: ±1.79769313486231570814527423731704357e+308
Min towads 0: ±4.94065645841246544176568792868221372e-324
Integer4 (x86)
8 (x64)
-2,147,483,648 to 2,147,483,647
-9,223,372,036,854,775,808 to +9,223,372,036,854,775,807
UInteger4 (x86)
8 (x64)
0 to 4,294,967,295
0 to 18,446,744,073,709,551,615
Int81-128 to 127
Int162-32,768 to 32,767
Int324-2,147,483,648 to 2,147,483,647
Int648-9,223,372,036,854,775,808 to +9,223,372,036,854,775,807
UInt810 to 255
UInt1620 to 65,535
UInt3240 to 4,294,967,295
UInt6480 to 18,446,744,073,709,551,615
String
Text
Ptr4 (x86)
8 (x64)
Short2-32,768 to 32,767 (deprecated, use Int16)
Single4Max value: ±3.40282346638528859811704183484516925e+38
Min value: ±1.40129846432481707092372958328991613e-45
Structure
Variant
WString2 per char + 2 (windows)
4 per char + 4 (mac/linux)

Leave a Reply

Your email address will not be published. Required fields are marked *