PRINT #handle, expression ; expression(s) ;

This statement is used to send data to the mainwin, to a disk file, or to other windows.  A series of expressions can follow PRINT, each separated by a semicolon.  Each expression is displayed in sequence.  If the data is being sent to a disk file, or to a window, then #handle must be present.

When sending data to a disk file and in regard to the use of the semicolon at the end of the expression list, the rules are similar, although the result is not displayed on the screen.  Use of a semicolon at the end of a line suppresses the carriage return/line feed that causes text to be printed on the next line.  When printing to a window, the expressions sent are usually commands to the window (or requests for information from the window).

See also Graphics Commands.