December 2001 Display and Operation 6 – 263
LINE=xpix, ypix
Draws a line from the current position to the designated position. Then the
designated position is taken over as the actual position.
xpix = Distance in pixels from the left edge of the current page
ypix = Distance in pixels from the upper edge of the window
ILINE=xpix, ypix
Draws a line from the current position to a position that is offset by xpix,
ypix.
xpix, ypix = Line lengths in x, y.
Then the current position is corrected by xpix, ypix.
LINESTYLE=SOLID/DASH/LDASH
Defines the line type for the LINE/ILINE command.
SOLID = solid line
DASH = dashed line (interrupted line)
LDASH = dot-and-dash line
Default setting: SOLID
The width of the line is one pixel and cannot be changed.
FILE= <table name>
Opens a table for access with tableread.
You cannot open more than one table at a time. If the FILE command is called
more than once, the previously opened table is closed. At the end of the mask
the table is automatically closed.
tableread (line, column)
Reads field contents from the table that has been opened with FILE=. With the
/c switch you can show the field contents of a table and update them
cyclically.
Example:
CHARSIZE = SMALL;
LINESTYLE = SOLID;
FILE = TNC:\P_PLATZ.P;
COLOR=1;
"%s", tableread(0, "P-NR");
"%s", tableread(2, "P-NR");
Mathematical
expressions for
screen positions
If for special functions a numerical value is expected, a mathematical
expression can be written in integer arithmetic.
The operators and priority rules of the programming language C apply.
Available operations: +, –, *, /, %, &, |, ^.
The mathematical expressions may have the following variables:
Variable Meaning
PAGE Number of the current page, beginning with zero
XPOS X position of the cursor pixel
YPOS Y position of the cursor pixel
LINEDIST Currently defined line spacing in pixels
ROWDIST Currently defined character spacing, width of an ASCII
character
XSIZE Width of the screen window in pixels
YSIZE Height of the screen window in pixels