
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:
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
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
Displays data on the LCD screen.
Содержание BHT-BASIC 100 SERIES
Страница 1: ......
Страница 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Страница 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Страница 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Страница 192: ...Chapter 14 Statement Reference 184 Example OPEN master Dat AS 1 FIELD 1 20 AS bar 10 AS ky CLFILE 1 CLOSE 1...
Страница 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...
Страница 349: ...341 Run time errors Error code Meaning 05h Parameter out of the range checktype is out of the range...
Страница 383: ...375 Run time errors Reference Error code Meaning 05h Parameter out of the range Functions LEFT LEN and RIGHT...