Specifications

Chapter 14. Statement Reference
294
Syntax:
PRINT [data[CR/LFcontrol...]]
Parameter:
data
A numeric or string expression.
CR/LFcontrol
A comma (,) or a semicolon (;).
Description:
PRINT displays a number or a character string specified by data at the current
cursor position on the LCD screen (To position the cursor, use a LOCATE state-
ment.) and then repositions the cursor according to CR/LFcontrol.
data
data may be displayed according to the current display mode and character
attributes. You need to select the display mode with a SCREEN statement before
execution of the
PRINT statement.
If you omit data option, a blank line is outputted. That is, the cursor moves to
the first column of the next screen line.
Positive numbers and zero automatically display with a leading space.
Control codes (08h to 1Fh) appear as a space, except for BS (08h), CR (0Dh) and
C (18h) codes.
BS (08h) deletes a character immediately preceding the cursor so that the cursor
moves backwards by one column.
PRINT CHR$(8);
CR (0Dh) causes a carriage return so that the cursor moves to the first column of
the next screen line.
PRINT CHR$(&h0D);
C (18h) clears the LCD screen so that the cursor moves to its home position in the
top left corner, just like the CLS statement.
PRINT CHR$(&h18);
I/O statement
PRINT
Displays data on the LCD screen.