11. Robot Language Explanation
------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
11 - 41
11.4.2 String Function
The functions that have the string returned, are called the string functions.
11.4.3 Robot Language corresponding to a existing MIT Function Code.
The same result of each operation of existing MIT function code can be obtained by using the
robot language command instructions in appropriate places. The followings are the examples
of such cases. The code corresponding to the other command instruction are indicated by the
background color.
Function Name Description Example
CHR$(a)
Returns a character which has the character code
of a.
CHR$(7)
STR$(a)
Returns a decimal string corresponding to number
a.
STR$(13.25)
BIN$(a)
Returns a binary string corresponding to a number
a.
BIN$(&B0010)
HEX$(a)
Returns a hexa string corresponding to a number
a.
HEX$(&H7A2F)
MIRROR$(a)
Returns the reverse string corresponding to a
binary string a.
MIRROR$("HELLO")
LEFT$(a, b) Returns a string of b characters of string a. LEFT$("HELLO", 2)
MID$(a, b, c)
Returns a string of c characters from bth
characters of string a.
MID$("HELLO", 1, 3)
RIGHT$(a, b)
Returns a string of b characters from the back
of string a.
RIGHT$("HELLO", 2)
DATE$ Returns a current date string (YY/MM/DD) DATE$
TIME$ Returns a current time string (HH:MM:SS) TIME$