Ets_Ctl_Value_Str_Set()
Note: Requires OPNET Development Kit
Abstract
Sets the string value of a control.
Syntax
Ets_Ctl_Value_Str_Set (ctl_ptr, value_ptr)
| Argument | Type | Description |
|---|---|---|
ctl_ptr |
EtsT_Ctl * |
pointer to an ETS control |
value_ptr |
const char * |
the new value of the control |
Return Type
EtsT_Compcode
EtsC_Compcode_Failure if the control is not of string type; EtsC_Compcode_Success otherwise.
Header
ets_api_gui.h
Details
If the value type of the control is not "string", the function issues a recoverable error. Otherwise, it sets the value of the control to the specified string. Controls that have string values include combo boxes, edit fields, labels, and pop-up menus.