59
<i> is the cursor position counting from the leftmost side of the
display.
Example:
PRINT “CF” TAB (10) “BASIC”
Remarks:
The “column position” must be from 1 to 255.
If the current print position is already beyond <i>, the cursor moves to the <i>th
position on the next line. TAB is only valid for the PRINT and LPRINT state-
ments.
VAL Function
Purpose:
To convert a character string into a numeric value
Format:
VAL(<x$>)
Example:
A = VAL(A$)
Remarks:
The VAL function also strips leading blanks, tabs, and linefeeds from the argu-
ment string. If the first character of <x$> is not numeric, zero is returned.
4-2-7
Special Functions
DATE$ Function
Purpose:
To set or display the current date
Format:
As a statement: DATE$ = <x$>
As a variable: <y$> = DATE$
<x$>: the date in one of the following formats:
mm-dd-yy
mm-dd-yyyy
mm/dd/yy
mm/dd/yyyy
<y$>: A ten character string in mm-dd-yyyy format:
mm: two digit value for the month (01-12)
dd: two digit value for the day (01-31)
yy: two digit value for the year
yyyy: for digit value for the year
Example:
DATE$ = “89/05/23”
Remarks:
If DATE$ is on the right side of the assignment statement or in a PRINT state-
ment, the current date is assigned or printed, respectively. If DATE$ is on the left
side of the assignment, the right side of the assignment statement becomes the
new current date. If any of the values are out of range or are missing, an error
message will be displayed.
DAY Function
Purpose:
To give or set the current day of the week
Format:
DAY = <num>
I = DAY
Remarks:
In the first format, DAY returns a number between 0 and 6, corresponding to
Sunday through Saturday. In the second format, the day of the week is assigned
to DAY.
Commands, Statements, and Functions
Содержание C500-ASC04
Страница 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Страница 5: ...iv ...
Страница 7: ...vi ...