ERASE: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
{{PageSeeAlso}} | {{PageSeeAlso}} | ||
* [https://qb64phoenix.com/forum/showthread.php?tid=1243 Featured in our "Keyword of the Day" series] | |||
* [[DIM]], [[REDIM]] | * [[DIM]], [[REDIM]] | ||
* [[CLEAR]] | * [[CLEAR]] |
Latest revision as of 22:32, 25 May 2024
The ERASE statement is used to clear all data from an array. $STATIC array dimensions are not affected.
Syntax
- ERASE arrayName [, arrayName2...]
Description
- 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.
See also