Category Creo Parametric TOOLKIT fundamentals, Object ProArray

Function ProArrayObjectRemove


Description
Removes an object from a specified location in the array.

NOTE:

Because this call may cause the array to be reallocated, you must pass the address of the array.

Synopsis
#include <ProArray.h>
ProErrorProArrayObjectRemove(
ProArray* p_array
/* (In)
The address of the array.
*/
int index
/* (In)
The position at which to remove the objects from the array. The index value can range from 0 to (size of array-1). If the index is less than 0 (PRO_VALUE_UNUSED), the array shrinks by n_objects.
*/
int n_objects
/* (In)
The number of objects to remove.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully removed the objects.
PRO_TK_BAD_INPUTSOne or more of the arguments are invalid.

Manual References:

  1. Fundamentals: Expandable Arrays

Sample Code References:

  1. pt_examples ( TestAnimation.c )
  2. pt_examples ( TestDbms.c )
  3. pt_examples ( TestFeats.c )
  4. pt_examples ( TestDtlgroup.c )
  5. pt_examples ( TestRelation.c )
  6. pt_examples ( TestRelation.c )
  7. pt_examples ( TestRelation.c )