AddLevel (add a Level to the BreakId Break)

Top  Previous  Next

AddLevel( | breakid | )

AddLevel

Assign a level number to the active break.

breakid

An integer that identifies which internal break to assign this level to.

The AddLevel method identifies the order of break execution that is assigned to a corresponding report. This is used when nested breaks are assigned, and controls which break is executed first.

Implementation:

The AddLevel method is called after each break is added, directly following the AddBreak method.

Example:

 BreakMgr.AddBreak()                 !First Break

 BreakMgr.AddLevel()                 !Auto assign level 1

 BreakMgr.AddResetField(PEO:Gender)

 BreakMgr.AddTotal(TestCount,1)

 BreakMgr.AddBreak()                 !Second Break

 BreakMgr.AddLevel() !Break2

 

See Also:     Add Break