redim | |
ACTION: |
create or resize a dynamic array, preserving contents within range
|
USE: |
extend or reduce an array size at run-time
|
EXAMPLE: |
redim string s(n) |
REMARKS: |
to flush an array's contents, redim it with 0 elements first. But avoid doing this with arrays of strings; the orphaned strings are not garbage-collected until the end of the program, and will accumulate on each iteration where the redim reduces the number of elements. |
RELATED: |
dim
new
|