# PRINT

Updated: 10/14/2021, 2:20:00 PM
Created: 10/14/2021, 2:20:00 PM
Last Updated By: mikes
Read Time: 1 minute(s)

Tags: printing outpput

# Description

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

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

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.

# Note

  • 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.

An example of use is as:

PRINT A "L#5"
PRINT @(8,20):"Como esta?":
1
2

See also:  CRT.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide