ClearArray |
Arrays | |
Aptilis 1 |
ClearArray(ArrayName[][, predifined size])
ClearArray deletes an array. Its size is reset to zero
and none of its element is available any more.
The optional predefined size parameter can be used to warn Aptilis
in advance if you know how many elements the array is likely to
contain. That does speed things up.
Return value:
0
Example:
a[0] = 22 a[1] = 35 print(a[0], "\n", a[1], "\n") cleararray(a[]) print("----\n", a[0], "\n", a[1], "\n")Result:
22.0000 35.0000 ---- 0.0000 0.0000 |
See also
SetArrayIndex,
SetArrayDimensions,
GetNext,
GetPrevious,
GetArraysize.