ArrayDim


 

ArrayDim>array_name,num_elements[,variable_type]

 

Creates an empty array with specified number of elements.  If the array already exists and num_elements is larger than the existing number of elements the array is lengthened with extra empty elements.

 

The optional parameter variable_type can be used to set the variable type for each element. E.g. "string". This is useful when performing comparisons in complex expressions as it will force string comparison and prevent type needing to be inferred.

 

See also: ArrayCopy, ArrayRename, ArrayCount, ArrayFind, ArraySort, DelArray, Arrays

Abbreviation: ARR

 

Example:

 

ArrayDim>Names,3

Let>Names_1=Fred

Let>Names_2=Sally

Let>Names_3=John