PA_GetBooleanInArray

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetBooleanInArray (array; index) char

ParameterTypeDescription
arrayPA_VariableArray to access
indexlongIndex of the element to access
Function resultcharValue 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

PA_SetBooleanInArray.

Error Handling

None.


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next