ERASE - QB64 Wiki


From QB64 Wiki

Jump to: navigation, search

The ERASE statement is used to clear all data from an array. $STATIC array dimensions will not be changed.


ERASE ArrayName [, arrayname2...]

  • String array elements will all become null strings("") and numerical array elements will all 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 the array brackets in an ERASE call.

See also:

Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
Personal tools