Delphi uses integer conventions similar to C, although the names are case-insensitive, as with BASIC. That is, a Delphi INTEGER value may be either a PowerBASIC INTEGER or LONG, depending on whether the Delphi code is 16-bit or 32-bit.
The elements of multi-dimensional arrays, in Delphi, are not necessarily stored in a straightforward order in memory. Such arrays are not compatible with other languages.
Type |
Format |
PowerBASIC |
ansistring |
dynamic ANSI string |
|
boolean |
unsigned 8-bit |
|
byte |
unsigned 8-bit |
BYTE |
bytebool |
unsigned 8-bit |
BYTE |
cardinal |
unsigned 16/32-bit |
|
comp |
signed 64-bit |
|
currency |
8-byte fixed point |
|
double |
8-byte floating point |
|
extended |
10-byte floating point |
|
int64 |
signed 64-bit |
QUAD |
integer |
signed 16/32-bit |
|
longbool |
signed 32-bit |
LONG |
longint |
signed 32-bit |
LONG |
longword |
unsigned 32-bit |
DWORD |
pchar |
STRINGZ string |
|
shortint |
signed 8-bit |
BYTE (2) |
shortstring |
2 to 256 byte string |
|
single |
4-byte float |
|
smallint |
signed 16-bit |
INTEGER |
variant |
data-dependent |
|
wstring |
dynamic Unicode string |
|
word |
unsigned 16-bit |
WORD |
wordbool |
unsigned 16-bit |
WORD |