Sign in Join
FPDoc Onlineexperiment

TInt64Helper.Bits property

Member of TInt64HelperpublicIn unit sysutils

Read or write a bit.

Declaration

pascal
property Bits[aIndex: TInt64BitIndex]: Boolean read GetBit write PutBit;

Description

Bits property reads or writes boolean value to a bit number determined by argument aIndex.

MyInt64.Clear;// %0000000000000000000000000000000000000000000000000000000000000000 MyInt64 equals 0
  MyInt64.Bits[0] := true;  // %0000000000000000000000000000000000000000000000000000000000000001 MyInt64 equals 1
  MyInt64.Bits[2] := true;  // %0000000000000000000000000000000000000000000000000000000000000101 MyInt64 equals 5
  WriteLn(MyInt64.Bits[2]); // TRUE

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.