version 2003
PA_GetArrayNbElements (array) long
Parameter | Type | Description | |
array | PA_Variable | Array to access | |
Function result | long | Number of elements in array |
Description
The command PA_GetArrayNbElements returns the number of elements in the array array.
If the parameter array is not an array, the routine returns -1.
Example
Loop in an array.
count = PA_GetArrayNbElements( myArray ); for ( i = 1; i <= count; i++ ) /* . . . do something with each element . . . */
See Also
PA_ResizeArray, Size of array.
System Variables and Sets
None is affected.
Error Handling
None.