Programming Guide |
Clears data from unprotected widgets
void sm_cl_unprot(void);
sm_cl_unprot
erases onscreen and offscreen data from all widgets (with the exception of list boxes) that are unprotected from clearing—that is, theirclearing_protect
property is set toPV_NO
. Date and time fields that take system values are reinitialized. Fields whosenull_field
property are set toPV_YES
are reset to their null indicator values.This function is normally bound to the CLR key.
To clear data from list box widgets, refer to sm_clear_array.
/* The following code clears all unprotected fields
* and puts the cursor into the first one. */
sm_cl_unprot();
sm_home();