From Lazarus wiki
Revision as of 11:48, 1 March 2020 by Trev (talk | contribs) (English translation of German page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Deutsch (de) English (en) français (fr)

Back to data types.

Range of values: 0 .. 4294967295

Memory requirement: 4 bytes or 32 bits

A data field of data type UInt32 can only take positive integer values. Assigning other values ​​leads to compiler error messages when the program is compiled and the compilation process is aborted. That is, the executable program is not created.

Definition of a data field of type UInt32:

    ui32 : uint32;

Examples of assigning valid values:

  ui32 := 0;
  ui32 := 4294967295;

Examples of assigning invalid values:

  ui32 := '0';
  ui32 := '4294967295';

The difference between the two examples is that the upper example is the assignment of literals of the type Integer, while the assignment of the lower example is literals of the type String.