2017-10-10 14:55:21 +00:00
|
|
|
The [[ERASE]] statement is used to clear all data from an array. [[$STATIC]] [[Arrays|array]] dimensions are not affected.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageSyntax}}
|
2017-10-10 14:55:21 +00:00
|
|
|
: ERASE ''arrayName'' [, ''arrayName2''...]
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
2017-10-10 14:55:21 +00:00
|
|
|
{{PageDescription}}
|
2019-04-15 01:15:33 +00:00
|
|
|
* All string array elements become null strings ("") and all numerical array elements become 0.
|
2015-08-02 12:12:44 +00:00
|
|
|
* Multiple arrays can be erased using commas between the array names.
|
2017-10-10 14:55:21 +00:00
|
|
|
* [[$DYNAMIC|Dynamic]] arrays must be [[REDIM]]ensioned 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.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
2017-10-10 14:55:21 +00:00
|
|
|
{{PageSeeAlso}}
|
2015-08-02 12:12:44 +00:00
|
|
|
* [[DIM]], [[REDIM]]
|
|
|
|
* [[CLEAR]]
|
|
|
|
* [[STATIC]]
|
|
|
|
* [[$DYNAMIC]]
|
|
|
|
* [[Arrays]]
|
|
|
|
|
|
|
|
|
2019-04-15 01:15:33 +00:00
|
|
|
{{PageNavigation}}
|