TSmallIntHelper.Bytes¶
Read or write a byte.
Declaration¶
Source position: syshelph.inc line 1060
public property Bytes[aIndex : TSmallIntByteIndex = TWordByteIndex]: Byte;
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¶
| Name | Description |
|---|---|
| TSmallIntHelper.Bits | Read or write a bit. |
| TSmallIntHelper.Nibbles | Read or write a nibble. |