PA_GetArrayNbElements

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetArrayNbElements (array) long

ParameterTypeDescription
arrayPA_VariableArray to access
Function resultlongNumber 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.


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next