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

- In the -lang fb and -lang fblite dialects, the `Integer` data type is 32-bit.
- In the -lang qb dialect, the `Integer` data type is 16-bit.

Differences from QB

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

See also

- `Long`
- `LongInt`
- `UInteger`
- `CInt`