Matrix1 Utility Plug-ins

GET ARRAYPTR SIZE


Syntax

Number of items = GET ARRAYPTR SIZE( Array pointer )

Description

This function is identical to GET ARRAYPTR SIZE, except that it operates upon an array pointer rather than an array.

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

For example:
dim a(0) as integer
p = GET ARRAYPTR( a() )
print ARRAYPTR COUNT( p )
print GET ARRAYPTR SIZE( p )

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.

Go back to ...

Matrix1Util_29 Commands Menu
Matrix1 Utils Main Index
Matrix1 Utils Command List
Commands Menu
Main Menu

Copyright © Ian Mold - Matrix1 Software 2006 - 2011