Array_size

Homepage Containers

Returns the number of elements the Array object can hold (alias for Array_length).

length := Array_size(ArrayObject)

Parameters

ArrayObject The Array object to use for the current operation.

Return Value

Number of elements ArrayObject can hold.

Remarks

If ArrayObject is NULL (0 or blank), the empty string is returned, to indicate an error.

Related

Array_length

Array

Examples

;Creates a new Array (of length 10)
myArray := Array_new(10)

;Outputs the Array's length (10)
MsgBox, % "myArray has " Array_size(myArray) " elements."

Homepage  |  Containers