setarraycount( variable, count )


Parameters

  Type Description
variable lvalue variable to modify
count numeric new array size

_result

Not set.

Descriptions

Sets the number of array elements on variable to the number specified by count. If count is larger than the current array size new array elements are added with a value of zero to the end of the existing array. If count is smaller than the current array size elements are removed from the end.

Array indexes start with zero, so after calling setarraycount the largest valid index is count - 1. For more information about user variables see the user variables topic.

See Also

countarray, cleararray, getpropname, hasprop, countprops, clearprops, assignment (=), copy, initialize, clear, isequal, user variables