ERASE

From QB64 Wiki

Revision as of 22:00, 9 May 2011 by Clippy (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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


Syntax:

ERASE ArrayName$


  • String array elements will all become empty strings "".
  • Number array elements will all become 0.
  • You can ERASE multiple arrays using commas between the names.
  • Dynamic arrays MUST be REDIMensioned if ERASE is used to clear the array values.
  • 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:



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page