![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429069.webp)
59
Format:
RIGHT$(<x$>,<i>)
<x$> is the string to be searched.
<i> is the number of characters to be returned.
Example:
A$ = RIGHT$(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.
SPACE$ Function
Purpose:
To return a string of spaces of the specified length
Format: SPACE$(<x>)
<x> is the number of spaces.
Example:
A$ = “CF”+SPACE$(5)+“BASIC”
Remarks:
<x> must be from 0 to 255. If <x> is not an integer, it will be rounded off. If 0
is specified, an empty character string is returned.
STR$ Function
Purpose:
Converts the specified numeric value into a character string
Format: STR$(<x>)
Example:
B$ = “A”+STR$(123)
Remarks: The VAL function performs the inverse operation.
STRING$ Function
Purpose:
To return a character string of the specified character and length
Formats: STRING$(<i>,<j>)
STRING$(<i>,<x$>)
<i> is the number of characters to be returned.
<j> is the ASCII code of some character.
<x$> is a given string.
Example:
A$ = STRING$(10,“A”)
Remarks:
<i> and <j> must be from 0 to 255.
An empty string is returned if the <i> is 0.
If the <x$> is made up of two or more characters, only the first character is
used.
TAB Function
Purpose:
To move the cursor to a specific position on the terminal display
Format:
TAB(<i>)
<i> is the cursor position counting from the leftmost side of the
display.
Example:
PRINT “CF” TAB (10) “BASIC”
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 ...