This procedure returns number of elements of array.
| Parameter | Type | Description | |
|---|---|---|---|
| arrayPtr | POINTER | Mandatory | Pointer to array |
Procedure returns number of array elements (9P 0).
Examples:
xxText = 'Example of text';
xxPtr = stringToArray(%ADDR(xxText): %LEN(%TRIMR(xxText)));
//This will create array with following elements: ['Example','of','text']
xxNum = arrayGetNumOfElements(xxPtr);
//xxNum = 3
arrayDestroy(xxPtr);