Long
Standard data type: signed integer having same size as `SizeOf(Any Ptr)`
Syntax
`
Dim variable As Long
`
Description
Depending on the platform, same as `Integer` or `LongInt`. A 32-bit or 64-bit signed whole-number data type.
`Long` has the same size as `SizeOf(Any Ptr)`.
Example
`
Dim x As Long = &H80000000
Dim y As Long = &H7FFFFFFF
Print "Long Range = "; x; " to "; y
`
Output:

    Long Range = -2147483648 to  2147483647

Dialect Differences

- In the -lang fb and -lang fblite dialects, the `Long` data type has the same size as `SizeOf(Any Ptr)`.
- In the -lang qb dialect, the `Long` data type is always 32-bit.

Differences from QB

- In QB, LONG is always 32-bit.
- None, if compiled in the -lang qb dialect.

See also

- `Integer`
- `LongInt`
- `Ulong`