STR$ |
[Features] A number is made
into string representation and returned.
[Format] STR$(n)
[e.g.]
d=128
a$=str$(d)+" dollar"
print a$
128 dollar
LEN |
[Features] The length of a
character string is returned.
[Format] LEN("string")
[e.g.]
print
len("ABCDEFG")
7
INSTR |
[Features] To return in the
how many character"string2" is by "string1", count from the n-th.
[Format] INSTR([n,]"string1","string2")
(Default n=1)
[e.g.]
print instr("abc12def12ghy","12")
4
print instr(5,"abc12def12ghy","12")
9
MID$ (function) |
[Features] The string of the
'n'-th length'len' is returned in "string".
[Format] MID$("string",n,len)
[e.g.]
print
mid$("ABCDEFGH",3,2)
CD
MID (statement) |
[Features] The 'n'-th
character length'len' of Character Variable'CharValue$' is replaced by
"string".
[Format] MID$(CharValue$,n,len)="string"
[e.g.]
a$="ABCDEFGH"
mid$(a$,3,2)="12"
print a$
AB12EFGH
LEFT$ |
[Features] 'n'characters are
returned from the left.
[Format] LEFT$("string",n)
[e.g.]
print
left$("ABCDEFGH",4)
ABCD
RIGHT$ |
[Features] 'n'characters are
returned from the right.
[Format] RIGHT$("string",n)
[e.g.]
print
right$("ABCDEFGH",4)
EFGH
ASC |
[Features] ASCII code is
returned.
[Format] ASC("string")
[e.g.]
print
asc("a")
97
CHR$ |
[Features] One character of
the specified code is returned.
[Explanation]
By using 'PRINT' statement, output is also possible,
not only a character but
control-code.
[Format] CHR$(n)
[e.g.]
print
chr$(98)
b
STRING$ |
[Features] Character "string"
of length 'n' is returned.
[Format] STRING$(n,"string")
[e.g.]
print
string$(5,"A")
AAAAA
SPACE$ |
[Features] To return space
characters only the specified number.
[Format] SPACE$(n)
[e.g.]
a$="AB"+space$(4)+"CD"
print a$
AB CD
SPC |
[Features] In the command of
character output, it output space characters only the specified number.
[Format] SPC(n)
[Explanation]
When the numerical value is bigger than the
present text width,
the value will be modulo numeric
divided by the width.
[e.g.]
print "AB";spc(4);"CD"
AB CD
TAB |
[Features] In the command of
character output, it output space characters from present position to the
specified position.
[Format] TAB(n)
[Explanation]
When
the specified position is smaller than the present cursor-X position,
by line feed code, it will be output at the next line.
[e.g.]
print
"AB";tab(4);"CD"
AB CD
REP$ |
[Features] Replaced "string1" value is returned, from "String2" to
"String3".
[Format] REP$("string1","string2","string3")
[e.g.]
print rep$("abcdef123def","def","ABCD")
abcABCD123ABCD
UCASE$ |
[Features] It changes into a
upper-case letter.
[Format] UCASE$("string")
[e.g.]
print
ucase$("abcdefg")
ABCDEFG
LCASE$ |
[Features] It changes into a
lower-case letter.
[Format] LCASE$("string")
[e.g.]
print
lcase$("ABCDEFG")
abcdefg
TRIM$ |
[Features] To return string
excluding the right and left blank.
[Format] TRIM$("string")
[e.g.]
a$=trim$(" AB CD ")
print a$+a$
AB CDAB CD
CHCNT |
[Features] To return the number of occurrences of the specified
character in the
string.
[Format] CHCNT("string","1char"[,n])
[Explanation]
When 'n' is specified, to return the position of the
character
when "1char" appears for the 'n'th
time.
The left end is 1. If there is no character to
return 0.
When n=0, the number of 'n' is returned same as
when it was omitted.
[e.g.]
10
s$="ABC5DE5FGHI5JK"
20 print chcnt(s$,"5")
30
print chcnt(s$,"5",2)
3
7
AKCNV$ |
[Features] To convert one-byte characters to double-byte characters and
returns it.
[Format] AKCNV$("string")
[e.g.]
print akcnv$("!#$123ABC")
!#$123ABC
KACNV$ |
[Features] To convert double-byte characters to one-byte characters and
returns it.
[Format] KACNV$("string")
[e.g.]
print
akcnv$("!#$123ABC")
!#$123ABC
INET$ |
[Features] To get
the Text from the Internet Web of the specified address.
[Format] INET$("http://(address)"[,"encode"])
[Explanation]
A normally acquirable
text is 'html' page without script processing.
When "encode" is omitted , "UTF-8" is specified.
[e.g.]
a$=inet$("http://www.xxx123.com/")