PRINT


The PRINT statement sends data directly to the current output device, which will either be the terminal or the printer.

 

COMMAND SYNTAX

PRINT {ON Channel} expression {, expression...} {:}

 

SYNTAX ELEMENTS

Channel is the report channel number in the range 0 to 127.

An expression can evaluate to any data type. The PRINT statement will convert the result to a string type for printing. Expressions separated by commas will be sent to the output device separated by a tab character.

The PRINT statement will append a newline sequence to the final expression unless it is terminated with a colon ":" character.

 

NOTES

As the expression can be any valid expression, it may have output formatting applied to it.

If a PRINTER ON statement is currently active then output will be sent to the currently assigned printer form queue, (see also SP-ASSIGN command).

See also: CRT

 

EXAMPLES

PRINT A "L#5"
PRINT @(8,20):"Patrick":


jBC