|  | Programming Guide |        | 
Clears all data in an array
int sm_clear_array(int field_number);int sm_n_clear_array(char *field_name);int sm_1clear_array(int field_number);int sm_n_1clear_array(char *field_name);
field_name,field_number- A field in the array to clear.
- 0 Success.
sm_clear_arrayclears all data from the array that containsfield_numberorfield_nameand resets the number of occurrences in the array to 0. The array is cleared even if it is protected from clearing.
sm_1clear_arrayandsm_n_1clear_arrayonly clear the specified array;sm_clear_arrayandsm_n_clear_arrayalso clear arrays synchronized with the array unless they are protected from clearing.
/* Clear the entire array of "names" and arrays
* synchronized with "names". */
sm_n_clear_array("names");
/* Clear the "totals" column of a screen,
* without clearing arrays synchronized with "totals". */
sm_n_1clear_array("totals");



