PA_SetArrayCurrent


version 2003


PA_SetArrayCurrent (array; newCurrent)

Parameter Type Description
array PA_Variable * Pointer to the array to access
newCurrent long New current element

Description

The routine PA_SetArrayCurrent sets the current element of the array pointed to by array to newCurrent .

An array can hold up to 2 billion elements, but the Macintosh user interface can only display the 32767 first elements of an array in a list, so the current element is also limited to 32767 (it is stored internally on a short). You cannot pass a value for newCurrent greater than 32767 to this routine.

Example

Set the current element to the first one.

   PA_SetArrayCurent( &array, 1 );

See Also

PA_GetArrayCurrent .

Error Handling

None.