Sign in Join
FPDoc Onlineexperiment

TWordHelper.Bytes property

Member of TWordHelperpublicIn unit sysutils

Read or write a byte.

Declaration

pascal
property Bytes[aIndex: TWordByteIndex]: Byte read GetByte write PutByte;

Description

Bytes property reads or writes byte value to a byte number determined by argument aIndex.

MyWord.Clear; // %0000000000000000 MyWord equals 0
MyWord.Bytes[1] := 1; // %0000000100000000 MyWord equals 256
WriteLn(MyWord.Bytes[1]); // 1

See also

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