![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429068.webp)
58
Format:
LEFT$(<x$>,<i>)
<x$> is the string to be searched.
<i> is the number of characters to be returned.
Example:
A$ = LEFT$(B$,5)
Remarks:
<i> must be an integer from 0 to 255. If <i> is 0, an empty string is returned
as the function value. If <i> is greater than the number of characters in <x$>,
the entire character string is returned.
LEN Function
Purpose:
To return the number of characters in a character string
Format: LEN(<x$>)
Example:
A = LEN(A$)
Remarks: A value of 0 is returned if the “character expression” is an empty
string.
MID$ Function
Purpose:
To return the requested part of a given string
Format: MID$(<x$>,<i>[,<j>])
<x$> is the given string.
<i> is the position of the first character to be returned.
<j> is the number of characters to be returned.
Example: B$ = MID$(A$,2,5)
Remarks:
<i> must be from 1 to 255.
<j> must be from 0 to 255.
If <j> is 0, or if the value of the specified character position (<i>) is greater
than the number of characters in the character expression (x$), an empty
string is returned.
If <j> is omitted, or if <j> exceeds the number of characters to the right of the
specified position (<i>) in the character expression, all the characters to the
right are returned.
OCT$ Function
Purpose:
To convert the specified decimal number into an octal character
string
Format: OCT$(<x>)
<x> is a numeric expression in the range of -32768 to 32767.
Example:
A$ = OCT$(B)
Remarks:
If the value of <x> includes a decimal point, the INT function is internally ex-
ecuted to round it off.
RIGHT$ Function
Purpose:
To return the specified number of characters from the rightmost
character of the character string
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 ...