Display – Remote Processing CAMBASIC User Manual

Page 67

Advertising
background image

Comm ands - 34

DISPLAY

Process Statement

SYNTAX:

DISPLAY data [,][;][ data] . . .
DISPLA Y$ data [,da ta] . . .
DISPLA Y! " format" ; data [ , ] [; ]
DISPLAY "text"
DISPLAY variable
DISPLAY (row,column) data [,][;][ data] . . .
DISPLAY (row, column) " text"
DISPLAY (row,column)$ data [, data] . . .
DISPLAY (row,column)USING "format" ; data [ , ] [; ]

PURPOSE:

To wr ite information to char acter and gr aphic displays.

REMARK S:

The basic syntaxes above can be used to write to the DP series and LCD series displays. Before
using the D ISPL AY co mma nd, you must fir st execute the C ONF IG DI SPLA Y statem ent to install
the driver for your display.

" text" is a literal or assigned string.

DISPLAY A$

or

DISPLAY "This is text."

" variable " is any number, function, or evaluation.

DISPLAY N

or

DISPLAY N*35

or

DISPLAY TICK(0)

There are two ways to access the display: sequential and random access. In the sequential mode,
character s are displayed starting fr om the last position continue to the right. The rand om access
mode lets you place the cursor anywhere on the display using (row,column) parameters and
comm ence wr iting at that point.

On power– up, the cursor position is at row 0 and column 0. Printing will continue to the right. At
the end of the line, the DP series displays wrap to the next line. The LC D displays generally do not
wrap. T he cursor must be positioned to the next line.

Advertising