19 val function, 20 fix function, 21 curpos$ functionb7.22 clrscr$ function – Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual
Page 95: 21 curpos$ function

7Ć7
7.19
VAL Function
Format:
VAL(string)
where:
string can be a string variable or expression.
The function returns the real value of a string in a real format. If the
string is not in a real format, the returned value will be zero and an
error is logged:
STR_VAL = VAL(`9.8827') (STR_VAL has the value 9.8827)
7.20
FIX Function
Format:
FIX(expression)
where:
expression can be a real variable or real expression.
The function returns the whole part of a real or decimal number:
REAL_VAL = 87.88763
WHOLE PART = FIX(REAL_VAL) (WHOLE PART HAS THE VALUE
87.00)
7.21
CURPOS$ Function
Format:
CURPOS$(row,column)
where:
row and column are integer variables or expressions that
represent a cursor location on the screen of a VT100 compatible
terminal (1 to 24 rows inclusive and 1 to 132 columns inclusive).
CURPOS$ returns an ASCII string or escape sequence. This
function is used in combination with a PRINT statement to position
the cursor at a specific location on the screen (specified by row and
column) for a device that recognizes the ANSI standard cursor
position escape sequence (ESC [ row; col H):
ROW% = 10
COL% = 4
HEADING$ = TABLE #1"
PRINT;CURPOS$(ROW%,COL%) ;HEADING$ (Prints
TABLE #1" at cursor position 10,4)
When using the CURPOS$ function with the PRINT statement, a
semicolon should always be located in front of the function call to
tell BASIC not to put the string (generated by the function call) in a
zoned field (a field that is a multiple of 15 characters).
If the semicolon is not used, BASIC will pad the front of the escape
sequence with spaces, which will most likely not have the desired
effect: to move the cursor rather than to print something. Further