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

Home › Standard Data Types › ULong

ULong

Standard data type: 32-bit unsigned integer. Equivalent to Unsigned Long.

Syntax

Dim variable As ULong

Description

32-bit unsigned whole-number data type. Can hold values from 0 to 4294967295. Corresponds to an unsigned DWORD.

Remarks

Dialect Differences

  • Not available in the -lang qb dialect unless referenced with the alias __Ulong.

Differences from QB

  • New to FreeBASIC

See also

Examples

  Dim x As ULong = 0

  Dim y As ULong = &HFFFFFFFF

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

Output:

ULong Range = 0 to 4294967295

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