ULong Data Type

Holds unsigned 64-bit (8-byte) integer values in the range 0–18,446,744,073,709,551,615.


ULong is short for "unsigned long integer".

Default value
When you declare a variable of type ULong and leave it uninitialized,, its value defaults to zero (0).
Because ULong is an unsigned type, when you use the unary minus (-) operator on an expression of this type, the value is first converted to a Huge then negated.
The ULong data type widens to Huge, UHuge, Single, Double, Real, or Quad without any risk of overflow.
Type characters
Affixing the characters %U64 to the end of a variable name declares it as having a type of ULong.


Dim foo As ULong
Dim bar%U64

See also