ERASE
From QB64 Wiki
The ERASE statement is used to clear all data from an array. Array dimensions will not be changed.
- ERASE ArrayName$
- String array elements will all become empty strings "".
- Number array elements will all become 0.
- You can ERASE multiple arrays using commas between the names.
- Dynamic arrays MUST be REDIMensioned if ERASE is used to clear the array values.
- Dimension subprocedure arrays as STATIC to use ERASE and not have to REDIM.
- You do not have to include the array brackets in an ERASE call.
See also: