Skip to content
Paul Squires edited this page Sep 19, 2026 · 1 revision

Home › Standard Data Types › Long

Long

Standard data type: 32-bit signed integer

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

Examples

Dim x As Long = &H80000000

  Dim y As Long = &H7FFFFFFF

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

Output:

Long Range = -2147483648 to  2147483647

Category: Standard Data Types
Kind: keyword


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally