basic.print Statement/BASIC Program

basic.print

Command basic.print Statement/BASIC Program
Applicable release versions: AP, R83
Category BASIC Program (486)
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.
Syntax print {expression{,expression..}{:}
Options
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.
Purpose
Related basic.statements
basic.print.on
basic.masking.function
basic.crt
basic.char
basic.printer
basic.@.functions
basic.:
basic.cat
basic.,