?DD ERROR

Radio Shack TRS-80

Severity: Minor

What it means

DD stands for Redimensioned Array.
Radio Shack's manual: an attempt was made to DIMension a matrix which had previously been dimensioned by DIM or by default statements.

Affected Models

  • TRS-80 Model I with Level II BASIC

How to Fix It

  1. Put all DIM statements at the beginning of the program, before the arrays are used.

    Radio Shack's own example: 10 AA(4)=11.3 followed by 20 DIM AA(7) gives ?DD ERROR IN 20, because line 10 already gave AA a size.

  2. To give an array a new size, CLEAR first, then DIM it again.

    CLEAR resets all variables too.