Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TSmallIntHelper.Bytes

Read or write a byte.

Declaration

Source position: syshelph.inc line 1057

public property TSmallIntHelper.Bytes[aIndex: TSmallIntByteIndex] : Byte
  read GetByte
  write PutByte;

Description

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

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

See also

TSmallIntHelper.Bits

  

Read or write a bit.

TSmallIntHelper.Nibbles

  

Read or write a nibble.


Documentation generated on: Oct 27 2024