|
![]() |
![]() |
version 2003
PA_ResizeArray (array; newNb)
Parameter | Type | Description | |
array | PA_Variable * | → | Pointer to the array to access |
newNb | long | → | New 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
Error Handling
A "memory full" error (-108) may be returned if there is not enough room in the heap to allocate the array.