| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ASCIIFileClass > AsciiFileClass Methods >====== Reset (reset the ASCIIFileClass object) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[kill shut down the asciifileclass object .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[setline a virtual to position the file .htm|{{btn_next_n.gif|Next page}}]] | | || **Reset( **//filename //**)** {{blk2blue.jpg|blk2blue.jpg}} | **Reset** | Resets the ASCIIFileClass object. | | //filename// | The label of the ASCIIFile property's NAME attribute variable. | The **Reset **method resets the ASCIIFileClass object and returns a value indicating whether the end user selected a file or did not select a file. A return value of one (1) indicates a file was selected and //filename //contains its pathname; a retun value of zero (0) indicates no file was selected and //filename //is empty. **Implementation:** The Reset method calls the GetDOSFileName method to get the filename from the end user. Reset opens the file and resets any statistics and flags associated with the selected file. **Return Data Type:     **BYTE **Example:** **AsciiViewerClass.Reset FUNCTION(*STRING Filename)** **  CODE** **  FREE(SELF.DisplayQueue)** **  DISPLAY(SELF.ListBox)** **  IF ~PARENT.Reset(Filename) THEN RETURN False.** **  SELF.TopLine=1** **  SELF.DisplayPage** **  SELECT(SELF.ListBox,1)** **  RETURN True** **See Also:**[[asciifile the ascii file .htm|ASCIIFile]], [[getdosfilename let end user select file .htm|GetDOSFilename]]