version 2003
PA_GetIntegerInArray (array; index) short
Parameter | Type | Description | |
array | PA_Variable | Array to access | |
index | long | Index of the element to access | |
Function result | short | Value of the index element in array |
Description
The routine PA_GetIntegerInArray returns the value of the index element of the short array array.
If array is not a eVK_ArrayInteger or if index is out of range, the routine returns 0.
Example
Get value of the current element (no error check in this sample).
aShort = PA_GetIntegerInArray( iArray, PA_GetArrayCurrent( iArray ) );
See Also
Error Handling
None.