Skip to main content

Integer

Integer = LongInt

Example

procedure Increment(var Count: Integer);
begin
Count := Count + 1;
end;

Usage

Stores Velox scripting's fixed signed 32-bit LongInt-compatible value rather than a platform-Velox-width integer.

Additional Technical Info

Integer is a public copy of PascalScript's hidden LongInt base type (btS32). It is always signed 32-bit with range -2,147,483,648..2,147,483,647, including in Win64 Velox.

Use Integer for ordinary counts and APIs explicitly declared with Integer. Use Int64 for larger stable values and NativeInt only for pointer-sized native contracts.

Validate array/list indexes before use: the type can represent negative values even when the API requires zero-based nonnegative indexes. Also validate counts/lengths before allocation or I/O.

Converting from Cardinal, Int64, UInt64, NativeInt, TDateTime serials or Variant can exceed the range. Do not assume an implicit conversion will safely clamp or reject it; validate first.

The example is source-reviewed only; no count was incremented.

External references

Created 2026-07-15