User Tools

Site Tools


init_initialize_the_breakmanager_object_.htm
Navigation:  ABC Library Reference > BreakManagerClass > BreakManagerClass - Methods >====== Init (initialize the BreakManager object) ====== Previous pageReturn to chapter overviewNext page

Init( )

blk2blue.jpg

Init Initialize the BreakManager object.

The Init method initializes the BreakManager by clearing any prior entries in the internal Break Queue, which holds any breaks defined. Normally, the Destruct method also performs a similar function, but the Init method ensures that the Break Queue is clean before calling the report.

Implementation:     The Init method is called prior to the first AddBreak method.

Example:

 CODE

 GlobalErrors.SetProcedureName('PrintPEO:KeyLastName')

 SELF.Request = GlobalRequest    ! Store the incoming request

 ReturnValue = PARENT.Init()

 IF ReturnValue THEN RETURN ReturnValue.

 SELF.FirstField = ?Progress:Thermometer

 SELF.VCRRequest &= VCRRequest

 SELF.Errors &= GlobalErrors     ! Set this windows ErrorManager to the global ErrorManager

 CLEAR(GlobalRequest)            ! Clear GlobalRequest after storing locally

 CLEAR(GlobalResponse)

 SELF.AddItem(Translator)        ! Run-time translation enabled so get the global translator

 Relate:people.Open

! File people used by this procedure, so make sure it's RelationManager is open

 SELF.FilesOpened = True

BreakMgr.Init()

 BreakMgr.AddBreak()

init_initialize_the_breakmanager_object_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1