Revision [12816]
This is an old revision of KeyPgLong made by JeffMarshall on 2008-04-01 15:46:54.
LONG
Standard data type: signed integer having same size as KeyPgSizeof Sizeof(KeyPgAny Any KeyPgPtr Ptr)
Syntax:
Description:
Depending on the platform, same as KeyPgInteger Integer or KeyPgLongint Longint. A 32-bit or 64-bit signed whole-number data type.
Examples:
Dim x As Long = &H80000000
Dim y As Long = &H7FFFFFFF
Print "Long Range = "; x; " to "; y
Dim y As Long = &H7FFFFFFF
Print "Long Range = "; x; " to "; y
Output:
Long Range = -2147483648 to 2147483647
Dialect Differences:
- In the CompilerOptlang -lang fb and CompilerOptlang -lang fblite dialects, the Long data type has the same size as KeyPgSizeof Sizeof(KeyPgAny Any KeyPgPtr Ptr).
- In the CompilerOptlang -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 CompilerOptlang -lang qb dialect.
See also:
Back to Standard Data Types