User Tools

Site Tools


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

Init( ASCIIFileMgr ), VIRTUAL

blk2blue.jpg

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

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