Delphi

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.

Delphi Data Types

Type | Format | PowerBASIC
ansistring | dynamic ANSI string | STRING
boolean | unsigned 8-bit | BYTE
byte | unsigned 8-bit | BYTE
bytebool | unsigned 8-bit | BYTE
cardinal | unsigned 16/32-bit | WORD/DWORD (5)
comp | signed 64-bit | QUAD
currency | 8-byte fixed point | CURRENCY
double | 8-byte floating point | DOUBLE
extended | 10-byte floating point | EXT
int64 | signed 64-bit | QUAD
integer | signed 16/32-bit | INTEGER/LONG (5)
longbool | signed 32-bit | LONG
longint | signed 32-bit | LONG
longword | unsigned 32-bit | DWORD
pchar | STRINGZ string | STRINGZ
shortint | signed 8-bit | BYTE (2)
shortstring | 2 to 256 byte string | STRING * 256
single | 4-byte float | SINGLE
smallint | signed 16-bit | INTEGER
variant | data-dependent | VARIANT
wstring | dynamic Unicode string | WSTRING
word | unsigned 16-bit | WORD
wordbool | unsigned 16-bit | WORD