CAPL Script

ElCount

This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.

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