TCardinalHelper.Bits property
Read or write a bit.
Declaration
property Bits[aIndex: TCardinalBitIndex]: Boolean read GetBit write PutBit;Description
Bits property reads or writes boolean value to a bit number determined by argument
aIndex.
MyCardinal.Clear;// %00000000000000000000000000000000 MyCardinal equals 0 MyCardinal.Bits[0] := true; // %00000000000000000000000000000001 MyCardinal equals 1 MyCardinal.Bits[2] := true; // %00000000000000000000000000000101 MyCardinal equals 5 WriteLn(MyCardinal.Bits[2]); // TRUE
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
