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