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