1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 13:50:36 +00:00
QB64-PE/internal/help/ERASE_11111.txt
Roland Heyder aeb9c0668b Updates help files for use with new Wiki parser (2nd try)
Note: Many files were removed (not yet existing/empty pages). The parser will try to download them on demand and will auto-generate text for missing pages (eg. most _gl pages).
2022-05-21 00:18:31 +02:00

28 lines
778 B
Plaintext

{{QBDLDATE:05-20-2022}}
{{QBDLTIME:23:13:07}}
The [[ERASE]] statement is used to clear all data from an array. [[$STATIC]] [[Arrays|array]] dimensions are not affected.
{{PageSyntax}}
: ERASE ''arrayName'' [, ''arrayName2''...]
{{PageDescription}}
* 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|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.
{{PageSeeAlso}}
* [[DIM]], [[REDIM]]
* [[CLEAR]]
* [[STATIC]]
* [[$DYNAMIC]]
* [[Arrays]]
{{PageNavigation}}