DISPLAY

DISPLAY

Top  Previous  Next

 

The DISPLAY command displays text at the user's terminal.

 

 

Format

 

DISPLAY text {:}

DISPLAY @(col{,row})text {:}

 

 

The optional colon at the end of the line suppresses the normal newline after the text is displayed.

 

The second format positions the cursor to the given column and row (both numbered from zero) before displaying the text. If the row component and the preceding comma are omitted, the cursor is positioned to the specified column on the current line. There must be no spaces in the cursor position element. Any spaces following the close bracket are treated as part of the text. The QMBasic @() function variants with a negative value for the first (or only) argument are also supported.

 

The @SYSTEM.RETURN.CODE variable is not affected by this command.

 

 

Example

 

A paragraph containing

 

DISPLAY Hello :

DISPLAY world

 

would display

 

Hello world