Integer
 
Standard data type: 32 bit signed

Syntax

Dim variable As Integer

Description

32-bit signed whole-number data type. Can hold values from -2147483648 to 2147483647. (See LongInt for 64-bit integers.)

Example

  Dim x As Integer = &H80000000
  Dim y As Integer = &H7FFFFFFF
  Print "Integer Range = "; x; " to "; y

Output:
Integer Range = -2147483648 to  2147483647

Dialect Differences

Differences from QB

  • The INTEGER type is 16 bits wide in QB.
  • None, if compiled in the -lang qb dialect.

See also