forked from QB64-Phoenix-Edition/QB64pe
-
Notifications
You must be signed in to change notification settings - Fork 0
ERASE
Samuel Gomes edited this page Nov 8, 2022
·
1 revision
The ERASE statement is used to clear all data from an array. $STATIC Arrays dimensions are not affected.
ERASE arrayName [, arrayName2...]
- All string array elements become null strings ("") and all numerical array elements become 0.
- Multiple arrays can be erased using commas between the array names.
- $DYNAMIC arrays must be REDIMensioned if they are referenced after erased.
- Dimension subprocedure arrays as STATIC to use ERASE and not have to REDIM.
- You do not have to include array brackets in an ERASE call.