Number of items = GET ARRAY SIZE( Array() )


This differs from ARRAY COUNT() in that it returns the correct number of items in the array.

For example:
dim a(0) as integer
print ARRAY COUNT( a() )
print GET ARRAY SIZE( a() )

will display 0 and 1, because arrays are actually numbered from zero, and when you dimension an array you actually specify the last item number, not the size.

Community content is available under CC-BY-SA unless otherwise noted.