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.
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 ar-
gument 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
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.
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 as-
signed to DAY.
BASIC Language
Section 4-2
Содержание SYSMAC C200H-ASC02
Страница 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Страница 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Страница 122: ...Appendix B Specifications 115 130 35 100 5 ...
Страница 167: ...Cat No W165 E1 04 Note Specifications subject to change without notice Printed in Japan Authorized Distributor ...
Страница 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...