Ets_Ctl_Value_Int_Get()
Note: Requires OPNET Development Kit
Abstract
Gets the integer value of a control.
Syntax
Ets_Ctl_Value_Int_Get (ctl_ptr, value_ptr)
| Argument | Type | Description |
|---|---|---|
ctl_ptr |
EtsT_Ctl * |
pointer to an ETS control |
value_ptr |
int * |
pointer to an integer to receive the value of the control |
Return Type
EtsT_Compcode
EtsC_Compcode_Failure if the control is not of integer type; EtsC_Compcode_Success otherwise.
Header
ets_api_gui.h
Details
If the value type of the control is not "integer", issues a recoverable error. Otherwise, writes the value into the location specified by value_ptr. Controls that have integer values include checkboxes, sliders, and spinners.