version 2003
PA_GetBooleanInArray (array; index) char
| Parameter | Type | Description | |
| array | PA_Variable | Array to access | |
| index | long | Index of the element to access | |
| Function result | char | Value of the index element of the array |
Description
The routine PA_GetBooleanInArray returns the value of the index element of the boolean array array.
If the array is not a eVK_ArrayBoolean or if index is out of range, the routine returns 0.
Example
Get value of the current element (no error check in this sample).
if ( PA_GetBooleanInArray( boolArray, PA_GetArrayCurrent( boolArray ) ) )
{
/* . . . current element is true, do something . . . */
}
See Also
Error Handling
None.