1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/ERASE.md
2022-12-24 19:12:43 -06:00

758 B

The ERASE statement is used to clear all data from an array. $STATIC Arrays 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