?REDIM'D ARRAY ERROR
Commodore Commodore 64
Severity: MinorWhat it means
An array may only be DIMensioned once, Commodore's manual says.
If an array is used before its DIM, BASIC gives it an automatic size (ten elements, by Commodore's manual), and a DIM for it after that also gives this error.
Affected Models
- Commodore 64
- Commodore 64C
- Commodore 128 in C64 mode
How to Fix It
-
Find the second DIM for the array, or the line that used the array before its DIM.
-
Move the DIM to the start of the program, so it runs once and before the array is used.
A DIM inside a loop, or in a subroutine that runs twice, gives this error too.