Erase: Difference between revisions
Jump to navigation
Jump to search
Created page with "'''Statement''' ERASE ''arrays'' '''Description''' ERASE reinitializes fixed-size arrays, and releases memory allocated for dynamic-array storage. The required component, a..." |
No edit summary |
||
Line 5: | Line 5: | ||
'''Description''' | '''Description''' | ||
ERASE reinitializes fixed-size arrays, and releases memory allocated for dynamic-array storage. The required component, arrays, is a comma separated list of one or more array variables. | ERASE reinitializes fixed-size arrays, and releases memory allocated for dynamic-array storage. The required component, ''arrays'', is a comma separated list of one or more array variables. | ||
'''Example''' | '''Example''' |
Revision as of 03:40, 4 July 2012
Statement
ERASE arrays
Description
ERASE reinitializes fixed-size arrays, and releases memory allocated for dynamic-array storage. The required component, arrays, is a comma separated list of one or more array variables.
Example
REM ERASE Example 'ERASE reinitializes arrays DIM Children(3) Children(0) = "Eric" Children(1) = "Kenny" Children(2) = "Kyle" Children(3) = "Stan" PrintArray Children, 4 ERASE Children PrintArray Children, 4 FUNCTION PrintArray(arr, elements) DIM i FOR i = 1 to elements PRINT "#" & i&":","("&arr(i-1)&")" NEXT PRINT END FUNCTION
Output
#1: (Eric) #2: (Kenny) #3: (Kyle) #4: (Stan) #1: () #2: () #3: () #4: ()
Related Items