MQeFieldsContains

Description
Determines whether the MQeFields object contains a specific field.

Syntax
#include <hmq.h>
#include <hmqHelper.h>
MQEINT32 MQeFieldsContains( MQEHSESS hSess, MQEHFIELDS hFlds, 
              MQECHAR * pName, MQEINT32 * pCompCode, 
              MQEINT32 * pReason) 

Parameters

MQEHSESS hSess - input
The session handle, returned by MQeInitialize.

MQEHFIELDS hFlds - input
A handle to an MQeFields object.

MQECHAR * pName - input
A null terminated string containing the name of the field. A null or a zero length string is invalid.

MQEINT32 * pCompCode - output
MQECC_OK, MQECC_WARNING or MQECC_ERROR.

MQEINT32 * pReason - output
If the returned *pCompCode equals MQECC_ERROR, *pReason may have any of the following values:

MQE_EXCEPT_NOT_FOUND
Field name not found.

MQE_EXCEPT_INVALID_HANDLE

Return Value

MQEINT32
  • '1' the MQeFields object contains the given field
  • '0' the field is not found.
  • '-1' failure.

See Also
MQeFieldsGet


© IBM Corporation 2002. All Rights Reserved