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
UInt is short for "unsigned integer".
|Note||ViviFire 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).
- 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.
- 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.
Dim foo As UInt Dim bar%U