UInt Data Type

Holds unsigned integer values guarenteed to be at least 32 bits (4 bytes) and provides the best performance. On 32-bit architectures, values are in the range 0–4,294,967,295

Remarks

UInt is short for "unsigned integer".

NoteViviFire also has a UInteger data type. Do not assume that UInt and UInteger are synonymous.
Default value
When you declare a variable of type UInt and leave it uninitialized,, its value defaults to zero (0).
Negation
Because UInt is an unsigned type, when you use the unary minus (-) operator on an expression of this type, the value is first converted to a Long or Huge, depending on the system's architecture, then negated.
Widening
The UInt data type widens to ULong, UHuge, Single, Double, Real, or Quad without any risk of overflow.
Type characters
Affixing the characters %U to the end of a variable name declares it as having a type of UInt.

Examples

Dim foo As UInt
Dim bar%U

See also