Special Functions - Omron SYSMAC C200H-ASC02 Operation Manual

Ascii unit
Hide thumbs Also See for SYSMAC C200H-ASC02:
Table of Contents

Advertisement

BASIC Language
VAL Function
4-2-7

Special Functions

DATE$ Function
DAY Function
60
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
statements.
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 ar-
gument string. If the first character of <x$> is not numeric, zero is returned.
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
statement, 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.
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 as-
signed to DAY.
Section 4-2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents