User Tools

Site Tools


init_initialize_the_asciisearchclass_object_.htm
Navigation:  ABC Library Reference > ASCIISearchClass > AsciiSearchClass Methods >====== Init (initialize the ASCIISearchClass object) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

Init( ASCIIFileMgr ), VIRTUAL

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

init_initialize_the_asciisearchclass_object_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)