| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ASCIIViewerClass > AsciiViewerClass Methods >====== Reset (reset the ASCIIViewerClass object) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[pageup scroll up one page .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[setline position to specific line .htm|{{btn_next_n.gif|Next page}}]] | | || **Reset( **//filename //**)** {{blk2blue.jpg|blk2blue.jpg}} | **Reset** | Resets the ASCIIViewerClass object. | | //filename// | The label of the ASCIIFile property's NAME attribute variable. | The **Reset **method resets the ASCIIViewerClass 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 frees the display QUEUE and calls the ASCIIFileClass.Reset method to get a new filename from the end user. Reset refills the display QUEUE and redisplays the list box if a new file was selected. **Return Data Type:     **BYTE **Example:** **AsciiFileClass.Init FUNCTION |** **  (FILE AsciiFile,*STRING FileLine,*STRING FName,ErrorClass ErrorHandler)** **  CODE** **  SELF.AsciiFile&=AsciiFile** **  SELF.Line&=FileLine** **  SELF.ErrorMgr&=ErrorHandler** **  SELF.IndexQueue&=NEW(IndexQueue)** **  IF ~SELF.Reset(FName)** **    SELF.Kill** **    RETURN False** **  END** **  RETURN True** **See Also:     **[[asciifile the ascii file .htm|ASCIIFile]], [[reset reset the asciifileclass object .htm|ASCIIFileClass.Reset]]