Syntax
END | ENDEXIT | ENDNOPRINT
Parameters
EndNoPrint can be abbreviated as ENP.
The EndNoPrint logic command is preceded by a loop or condition logic statement.
Description
The EndNoPrint logic command functions similarly to the End logic command in that it specifies the end of a sequence of logic statements introduced by a loop command (Loop, ForEach, and looping LookUp and Determine logic command variants) or a condition command (If/DoWhen and Match logic commands). However, the EndNoPrint logic command also terminates the executing frame without printing, and execution continues after the Print method call that invoked the frame.
In the Main method of a report, the EndNoPrint logic command terminates the report.
In frame methods, the EndNoPrint logic command terminates the frame without printing, and execution continues after the Print method call that invoked the frame.
In a frame, the EndNoPrint logic command does persistent attributes to spaces or zeros. These variables should be initialized as required.
Note: An EndNoPrint logic statement following an Else logic statement applies only to the Else logic statement, rather than the associated DoWhen logic statement.
To avoid printing blank lines in non-ROC reports, either:
Terminate a logic-only frame with the EndNoPrint logic command.
Initiate a logic-only frame with a call to the frame's Main method.
Refer to End and EndExit for more information on other loop termination logic commands.
The EndNoPrint logic command should not be included in a frame designated by a BeginPage logic statement.
Example
This example uses a frame with the attribute Balance.
If Balance = Glb.Zeros : If the balance is zero, do not print. EndNoPrint