| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== ERASE (clear screen control and USE variables) ====== | [[endpage force page overflow .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[error return error message .htm|{{btn_next_n.gif|Next page}}]] | | || {{newc7.jpg|NewC7.jpg}} **ERASE(** [//first control//] [,//last control//] **)** {{blk2blue.jpg|blk2blue.jpg}} | **ERASE** | Blanks controls and clears their USE variables. | | //first control// | Field number or field equate label of a control, or the first control in a range of controls. If omitted, defaults to zero (0). | | //last control// | Field number or field equate label of the last control in a range of controls. | The **ERASE** statement erases the data from controls in the window and clears their corresponding USE variables. ERASE with no parameters erases all controls in the window. Using //first control// alone, as the parameter of ERASE, clears a specific USE variable and its associated control. Both //first control// and //last control// parameters are used to clear the USE variables and associated controls for an inclusive range of controls in the window. **Example:** **ERASE(?)               !Erase the currently selected control** **ERASE                  !Erase all controls on the screen** **ERASE(3,7)             !Erase controls 3 through 7** **ERASE(?Name,?Zip)      !Erase controls from name through zip** **ERASE(?City,?City+2)   !Erase City and 2 controls following City** **See Also:** [[field equate labels.htm|Field Equate Labels]] [[change change control field value .htm|CHANGE]]