Init (initialize the ASCIIPrintClass object) 


Top  Previous  Next

 

Init( ASCIIFileMgr ), VIRTUAL

Init

Initializes the ASCIIPrintClass object.

ASCIIFileMgr

The label of the ASCIIFileClass object that manages the file to print. The ASCIIPrintClass object uses the ASCIIFileMgr to read from the file and handle line numbers and error conditions.

The Init method initializes the ASCIIPrintClass 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