TCardinalHelper.Bytes¶
Read or write a byte.
Declaration¶
Source position: syshelph.inc line 1131
public property Bytes[aIndex : TCardinalByteIndex = TDwordByteIndex]: Byte;
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¶
| Name | Description |
|---|---|
| TCardinalHelper.Bits | Read or write a bit. |
| TCardinalHelper.Nibbles | Read or write a nibble. |
| TCardinalHelper.Words | Read or write a word. |