Print tab (expression), Input item list lineinput string variable – BrightSign HD2000 BrightScript Reference Guide User Manual

Page 21

Advertising
background image

21

10 PRINT "PRINT STATEMENT #10 ";
20 PRINT "PRINT STATEMENT #20"
RUN
PRINT STATEMENT #10 PRINT STATEMENT #20

A trailing semi-colon over-rides the cursor-return so that the next PRINT begins where the last one left off
(see line 10).

If no trailing punctuation is used with PRINT, the cursor drops down to the beginning of the next line.

If the console you are printing to is “windowed” (not TTY), then @ Specifies exactly where printing is to
begin. The @ modifier must follow PRINT immediately, and the location specified must be a number from
0 to 1023.

PRINT @ 550, "LOCATION 550"

Whenever you PRINT @ on the bottom line of the Display, there is an automatic line-feed, causing
everything displayed to move up one line. To suppress this, use a trailing semi-colon at the end of the
statement.

Example:

PRINT @ 1000, 1000;

PRINT TAB (expression)

Moves the cursor to the specified position on the current line (modulo the width of your console if you
specify TAB positions greater than the console width). TAB may be used several times in a PRINT list.

Example:

PRINT TAB(5)"TABBED 5";TAB(25)"TABBED 25"

No punctuation is required after a TAB modifier. Numerical expressions may be used to specify a TAB
position. TAB cannot be used to move the cursor to the left. If the cursor is beyond the specified position, the
TAB is ignored.

INPUT item list

LINEINPUT string variable

Causes the Interpreter to stop execution until, you enter the specified number of values via the keyboard. The
INPUT statement may specify a list of string or numeric variables to be input. The items in the list must be
separated by commas.

INPUT X$, X1, Z$, Z1

This statement calls for you to input a string-literal, a number, another string literal, and another number, in
that order. When the statement is encountered, the Interpreter will display a

?_

Advertising
This manual is related to the following products: