Sign in Join
FPDoc Onlineexperiment

TByteHelper.Nibbles property

Member of TByteHelperpublicIn unit sysutils

Read or write a nibble.

Declaration

pascal
property Nibbles[aIndex: TByteNibbleIndex]: nibble read GetNibble write PutNibble;

Description

Nibbles property reads or writes nibble value to a nibble number determined by argument aIndex.

MyByte.Clear;   // %00000000 MyByte equals 0
MyByte.Nibbles[1] := 3; // %00110000 MyByte equals 48
WriteLn(MyByte.Nibbles[1]); // 3

See also

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