Given a field name, remove its associated field from the MQeFields object.
#include <hmq.h> MQEINT32 MQeFieldsDelete( MQEHSESS hSess, MQEHFIELDS hFlds, MQECHAR * pName, MQEINT32 * pCompCode, MQEINT32 * pReason)
The field was not found in the MQeFields object.
#include <hmq.h> static MQECHAR const * FieldsType = "com.ibm.mqe.MQeFields"; MQEHSESS hSess; MQEINT32 compcode; MQEINT32 reason; MQEHFIELDS hFlds; MQEINT32 rc; hSess = MQeInitialize("MyAppsName", &compcode, &reason); hFlds = MQeFieldsAlloc( hSess, FieldsType, &compcode, &reason); /* * Add some fields to the fields object... and one of them is "XYZ" */ ... /* * Now delete field named "XYZ" */ rc = MQeFieldsDelete( hSess, hFlds, "XYZ", &compcode, &reason);