| .ERASE Statement Details. |
|
  QuickSCREEN       Details       Example       Contents       Index |
| ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ |
| ERASE Statement Details |
|
| Syntax |
|   ERASE arrayname [,arrayname...] |
|   |
| The arrayname arguments are the names of arrays to erase. ERASE |
| has different effects on $STATIC and $DYNAMIC arrays. |
|   |
| The ERASE statement sets the elements of a $STATIC array to zeros in |
| the case of a numeric array or null strings ("") in the case of a |
| string array. If the array is an array of records, the ERASE statement |
| sets all elements of each record to zeros, including fixed-string |
| elements. |
|   |
| However, using ERASE on a $DYNAMIC array frees the memory used by the |
| array. Before your program can refer to the $DYNAMIC array again, it |
| must first redimension the array with a DIM or REDIM statement. |
| Redimensioning an array with a DIM statement without first erasing it |
| produces a duplicate definition run-time error message that reads |
| Array already dimensioned. The ERASE statement is not required when |
| arrays are redimensioned with REDIM. |