PA_SetArrayCurrent

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

version 2003


PA_SetArrayCurrent (array; newCurrent)

ParameterTypeDescription
arrayPA_Variable *Pointer to the array to access
newCurrentlongNew 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.


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