TipcMsgDeleteNamedField


Name

TipcMsgDeleteNamedField — delete a field, specified by field name, from a message

Synopsis

T_BOOL TipcMsgDeleteNamedField(msg, name) 
T_IPC_MSG msg; 
T_STR name; 

Arguments

msg — message to delete field from

name — name of the field to delete

Return Values

TRUE if the deletion was successful, FALSE otherwise.

Diagnostics

If TipcMsgDeleteNamedField fails, it returns FALSE and sets the global SmartSockets error numbers to one of the following:

Description

TipcMsgDeleteNamedField deletes the named field from the message. The index positions associated with the subsequent named fields are updated. If no such field exists, the function returns FALSE.

See Also

TipcMsgDeleteCurrent, TipcMsgDeleteField

Examples

This example deletes the named field "cost":

if (!TipcMsgDeleteNamedField(msg, "cost")) { 
 return;  /* error */ 

TIBCO SmartSockets™ Application Programming Interface
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com