TutOptionSetEnum set the value of an enumerated option
option
option to set
enum_val
enumerated value to set option to
TRUE
if value is set successfully, FALSE
otherwise.
If TutOptionSetEnum fails, it returns FALSE
and sets the global SmartSockets error number to one of:
option
or enum_val
was NULL
.option
was not of type T_OPT_TYPE_ENUM.enum_val
was not a legal value for option.
option
.
TutOptionSetEnum sets the enumerated value of option
to enum_val
.
If no legal values for option
have been specified using TutOptionLegValAdd, any value is accepted.
None
This example sets the value of the option named enum_opt
to the enumerated value red
:
T_OPTION enum_opt; enum_opt = TutOptionLookup("enum_opt"); if (enum_opt == NULL) {/* error */
} if (!TutOptionSetEnum(enum_opt, "red")) {/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |