Category View manager, Object ProSimprepdataitem

Function ProSimprepdataitemDelete


Description
Deletes the specified item from the ProSimprepdata structure.

NOTE:

If an item is deleted from ProSimprepdata, its last status in the simplified representation will remain unchanged after calling ProSimprepdataSet. This should not be confused with deleting the item from the simplified representation, which can be achieved by setting the item action to PRO_SIMPREP_NONE.

Replacement in Object TOOLKIT: wfcWSimpRep::DeleteSimpRepInstructionItem
Synopsis
#include <ProSimprepdata.h>
ProErrorProSimprepdataitemDelete(
ProSimprepdata* p_data
/* (In)
The pointer to the ProSimprepdata structure
*/
ProSimprepitem* p_item
/* (In)
The item to delete
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully deleted the item from the structure.
PRO_TK_BAD_INPUTSOne or more of the arguments are invalid.
PRO_TK_E_NOT_FOUNDThe function did not find the specified item in the structure.

Manual References:

  1. Assembly: Simplified Representations: Adding Items to and Deleting Items from a Simplified Representation
  2. Assembly: Simplified Representations: Adding Items to and Deleting Items from a Simplified Representation

Sample Code References:

  1. pt_examples ( TestSimpRep.c )