Sign in Join
FPDoc Onlineexperiment

TShortIntHelper.Nibbles property

Member of TShortIntHelperpublicIn unit sysutils

Read or write a nibble.

Declaration

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

Description

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

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

See also

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