winput_update_field_c
status.i4.v = winput_update_field_c(window_id.i2.v, field_number.i4.v,
new_value.g.v, exe_callbacks.i4.v)
This routine allows the caller to change the value in a field
of dialog window created by an earlier call to winput(_c).
If the value is successfully changed and a callback function
has been specified for this field, it will be executed.
window_id window ID of dialog
(WMNGR_CURRENT_WINDOW -> current popup dialog,
otherwise -> window ID returned from call to
winput(_c))
field_number field number to update (starts at 1)
new_value new value for this field
exe_callbacks callback function flag
(TRUE -> execute any callbacks registered for
the specified field,
FALSE -> inhibit callback functions)
This function returns status values as follows:
OK value was successfully changed
CBS_DUPREQ value passed was the same as the field's
existing value
CBS_INVARG invalid data type
CBS_NOTENB field is not enabled for editing
This function requires the following include files:
cnsparam_h, cbslib_h, acnet_errors_h
Related functions:
winput(_c), input_array_values_c, array_edit_c, wrdspi(_c),
wrdspi4(_c), wrdspr(_c), wrdspr8(_c), inptxt(_c), input_string_dialog_c
C/C++ usage:
short window_id;
int status;
int field_number = 1;
int new_value = 0;
int exec_callbacks = TRUE;
status = winput_update_field_c(window_id,field_number,
(void *) &new_value,exe_callbacks);