From Xojo Documentation

Revision as of 20:45, 30 July 2019 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Data Type

Used to store integer values. The default value is 0. Generally you will use the Integer data type (equivalent to Int32 on 32-bit apps or Int64 on 64-bit apps) or UInteger (equivalent to UInt32 on 32-bit apps or UInt64 on 64-bit apps). There are also other size-specific integer data types that are available for use with external OS APIs.

ToBinary ToOctal ToText
ToHex ToString
Shared Methods
FromBinary FromOctal FromText
FromHex FromString Parse


Integer values use 4 bytes for 32-bit apps and 8 bytes for 64-bit apps.

Integer values range from -2,147,483,648 to 2,147,483,647 (32-bit apps) or -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807 (64-bit apps).

If you assign a value that is larger (or smaller) than what the specific Integer type can hold, then the value will "overflow". This means the value will wrap around to the corresponding largest or smallest value and continue from there.

Sample Code

Var value As Integer
value = 42
value = value * 2

See Also

Var command; UInteger data type