Skip to content

Writeln - Report

Outputs the string message to the current output channel

Type: Procedure

Parameters

Parameter Type Description
WrStr String the string

Syntax

Procedure Writeln String WrStr

Call Example

Send Writeln WrStr

Description

Writeln outputs the string message to the current output channel.

Col 1 Col 2
Note: All output in a report object is eventually funnelled to three procedures: output_imagenum, writeln, and formfeed. By controlling these three procedures, you can exercise extensive control over the report's output.

Assume you actually wish a report to be sent to three output channels at the same time (Channels 1, 2, and 3). Assume that the report_channel property is set to 1:

Procedure FormFeed
    Forward Send FormFeed // ff to channel 1
    Direct_outPut Channel 2// ff to ch 2
    Formfeed
    Direct_output Channel 3// ff to ch 3
    Formfeed
    Direct_Output Channel 1// restore channel 1
End_Procedure

Procedure WriteLn String S
    Writeln S// to channel 1
    Direct_output Channel 2// to ch 2
    Writeln S
    Direct_output Channel 3// to ch 3
    Writeln S
    Direct_Output Channel 1// restore channel 1
End_Procedure

Procedure OutPut_ImageNum Integer i
    Output_imageNum i // to channel 1
    Direct_outPut Channel 2// to ch 2
    Output_ImageNum i
    Direct_output Channel 3// to ch 3
    Output_imageNum i
    Direct_Output Channel 1// restore channel 1
End_Procedure