?REDIM'D ARRAY ERROR

Commodore Commodore 64

Severity: Minor

What 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

  1. Find the second DIM for the array, or the line that used the array before its DIM.

  2. 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.