Sign in Join
FPDoc Onlineexperiment

TCardinalHelper.Bytes property

Member of TCardinalHelperpublicIn unit sysutils

Read or write a byte.

Declaration

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

Description

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

MyCardinal.Clear; // %00000000000000000000000000000000 MyCardinal equals 0
  MyCardinal.Bytes[1] := 1; // %00000000000000000000000100000000 MyCardinal equals 256
  WriteLn(MyCardinal.Bytes[1]); // 1

See also

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