Skip to content

TIntegerHelper.Bytes

Read or write a byte.

Declaration

Source position: syshelph.inc line 1200

public property Bytes[aIndex : TIntegerByteIndex]: Byte;

Description

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

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

See also

Name Description
TIntegerHelper.Bits Read or write a bit.
TIntegerHelper.Nibbles Read or write a nibble.
TIntegerHelper.Words Read or write a word.