◄Contents► ◄Index► ◄Back► ───────────────────────────────────────────────────────────────────────────── ◄Knowledge Base Contents► ◄Knowledge Base Index► "Subscript Out of Range" for Array > 128K; Gaps in Far Heap, Example 1 The following example shows how to work around the "Subscript out of range" error message: ' To try this example in VBDOS.EXE: ' 1. From the File menu, choose New Project. ' 2. Copy the code example to the Code window. ' 3. Press F5 to run the program. DEFINT A-Z TYPE test a AS DOUBLE ' 8 bytes. b AS STRING * 288 ' 288 bytes. PAD AS STRING * 216 ' Must pad to make 512-byte total record size. END TYPE max = 453 REM $DYNAMIC DIM x(1 TO max) AS test END