Help Center
Help CenterFreeBASIC

Longkeyword

Standard data type: 32-bit signed integer

Standard Data Typeskeyworddocumented

Syntax

Dim variable As Long

Description


32-bit signed whole-number data type. Can hold values from -2147483648 to 2147483647. Corresponds to a signed DWORD.

Remarks

See also


Example


Dim x As Long = &H80000000

  Dim y As Long = &H7FFFFFFF

  Print "Long Range = "; x; " to "; y

Output:
Long Range = -2147483648 to  2147483647

Reference

  • Documented in KeyPgLong.html