PA_ResizeArray

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

version 2003


PA_ResizeArray (array; newNb)

ParameterTypeDescription
arrayPA_Variable *Pointer to the array to access
newNblongNew number of elements in array

Description

The routine PA_ResizeArray resizes the array pointed to by array to the number of elements passed in newNb.

If the parameter PA_Variable array is not an array, the routine does nothing.

Example

Create and resize an array.

   PA_Variable   longArray;

   longArray = PA_CreateVariable( eVK_ArrayLongint, 0 );
   PA_ResizeArray( &longArray, 10 );

See Also

PA_GetArrayNbElements.

Error Handling

A "memory full" error (-108) may be returned if there is not enough room in the heap to allocate the array.


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