| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ASCIISearchClass > AsciiSearchClass Methods >====== Init (initialize the ASCIISearchClass object) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[ask solicit search specifications .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[next find next line containing search text .htm|{{btn_next_n.gif|Next page}}]] | | || **Init( **//ASCIIFileMgr //**), VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} | **Init** | Initializes the ASCIISearchClass object. | | //ASCIIFileMgr// | The label of the ASCIIFileClass object that manages the file to search. The ASCIISearchClass object uses the //ASCIIFileMgr //to read from the file. | The **Init **method initializes the ASCIISearchClass object. **Example:** **MyViewerClass.Init FUNCTION(FILE AsciiFile,*STRING FileLine,*STRING Filename,|** **              UNSIGNED ListBox,ErrorClass ErrHandler,BYTE Enables)** ** CODE** ** !program code** ** IF BAND(Enables,EnableSearch)          !if Search flag is on** **  SELF.Searcher &= NEW AsciiSearchClass !instantiate Searcher object** **  SELF.Searcher.Init(SELF)              !initialize Searcher object** ** END** ** IF BAND(Enables,EnablePrint)           !if Print flag is on** **  SELF.Printer &= NEW AsciiPrintClass   !instantiate Printer object** **  SELF.Printer.Init(SELF)               !initialize Printer object** ** END**