CAPL Script

ElCount

Syntax

long elcount(...) // if used with arrays which are function parameters

dword elcount(...) // in all other cases

Function

Determines the number of elements of an array.

Parameters

Array of any arbitrary type.

Return Values

Number of elements.

void bsp(int ar[]) {int i;for(i=0; i < elCount(ar); i++)...}void bsp2(byte ar[][]) {int i, j;for(j=0; j < elCount(ar); j++ )for(i=0; i<= elCount(ar[j]); i++ )...}

runError