Q(uick)BASIC Data Types: ISAM

Quick View

ISAM Data Types

Information about data types supported with ISAM

Worth knowing

Useful and cross-version information about the programming environments of QBasic and QuickBasic.

Description/Parameter(s)
Data Type Size of Data Range Indexable
INTEGER 2 bytes, signed -32,768 to 32,767 Yes
LONG 4 bytes, signed -2,147,483,648 to 2,147,483,647 Yes
DOUBLE 8 bytes -1.79769313486231D308 to -4.94065D-324 for negatives;
4.94065D-324 to 1.79769313486231D308 for positives
Yes
When compiling with /Fpa:
-1.79769313486231D308 to-2.2250738585072D-308 fornegative values;
2.2250738585072D-308 to1.79769313486231D308 forpositive values.
CURRENCY 8 bytes -922337203685477.5808 to 922337203685477.5807 Yes
STRING Up to 32K Only if shorter than 256 bytes
Static Array 64K No
User-defined (structure) 64K No

The data types that can be specified in a TYPE...END TYPE statement are in bold upper-case letters.

  • BASIC's SINGLE data type is not supported in ISAM; use DOUBLE or CURRENCY instead.