PRINT

PRINT


PRECISION Index Level PRINT ON
Syntax PRINT {expression {,}{:}}{expression{,}{:}...}
Category BASIC
Type Statement
Description directs output of an expression to the current output device.

If nothing follows the print statement, a blank line is output.  

The "print.list", if present, consists of any number of expressions, including "@" functions, separated by commas or colons.

If a comma follows a print expression, the string generated is formatted right justified in a field of 15 blanks and aligned at tab positions that are pre-set at every 18 character positions.

A colon at the end of the print.list inhibits the output of a return and scroll following output of the last printed line.
Options
See Also statements & functions PRINT ON masking CRT CHAR PRINTER @ function : CAT , (comma)
Example print 'hello'

This statement outputs the literal string "hello". The quotes delimit the literal string and are not printed.

message = 'hello'
print message

This statement outputs the contents of the variable "message" to the current active output device.

print message:' ':company.name

This statement outputs the results of a string expression made up of the variables "message" and "company.name" and the literal string space (" ").

print @(10,10):'the amount is ' : (unit.price * qty) 'r#12'

This statement positions the cursor at column 10, row 10 of the terminal display, displays the literal string "the amount is ", and outputs the result of the arithmetic expression "unit.price * qty" right justified in a field of 12 characters.
Warnings R83 printed separator marks directly.  Prior to release 6.1.0, it always changed these to printable characters.  Release 6.1.0 and greater outputs separator marks directly when going to the printer, but changes them to printable characters when printing to the screen.
Compatibility D3 7.0 AP R83
PRECISION Index Level PRINT ON