| Description |
The
@( ) location function is used to
print/display text at a specific position on a printer or
terminal screen. This function can be used with
directives wherever text is to be sent to an output
device, most commonly via INPUT or PRINT
statements. Column
0 represents the column on the far left side of the
screen/printer, and line 0 represents the top line.
Output is positioned at the column specified on the
current line only if the column number is provided. When
used with a printer (or print file) and the line number
is less than the current line, a new page is started.
|
| Examples |
The
following statement prints the date in the upper left
hand corner of the screen with the time starting in
column 75 of the top line:
PRINT
@(0,0),"Date: ",DAY,@(75),TIM
This prompts for
information on the left side, 5 lines from the top:
INPUT
@(0,5),"Enter favorite
sport:",@(30),SPORT$,@(0,6),"Thanks"
This prints the date
right-justified in the upper right hand corner of the
screen:
LET D$=DTE(0:"%Dl
%Ms %D")
PRINT 'BLUE',@(80-LEN(D$),0),D$,
|