![]() | Programming Guide | ![]() |
Clears data from unprotected widgets
void sm_cl_unprot(void);
sm_cl_unproterases onscreen and offscreen data from all widgets (with the exception of list boxes) that are unprotected from clearing—that is, theirclearing_protectproperty is set toPV_NO. Date and time fields that take system values are reinitialized. Fields whosenull_fieldproperty are set toPV_YESare 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();
![]()
![]()
![]()
![]()