EasyManua.ls Logo

Radio Shack TRS-80 Model 3 - Page 226

Radio Shack TRS-80 Model 3
276 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TRS-80 MODEL
In
StringFunctions*
Section 2
Function
Operation Examples
Page
ASC(string)
Returns ASCII code
of
first character ASC(B$)
5/2
in string argument.
ASC("H")
CHR$(code exp)
Returns a one-characterstring defined CHR$(34)
5/2
by code.
If
code specifies a control CHR$(1 )
function, that function
is
activated.
FRE(string)
Returns amount
of
memory available FRE(A$)
5/3
for string storage. Argument is a
dummy variable.
INKEY$
Strobes Keyboard and returns a one- INKEY$
5/4
characterstring corresponding to key
pressed during strobe (null string
if
no key is pressed).
LEFT$(string,n)
Returns first n characters
of
string.
LEFT$(A$,1 )
5/5
LEFT$(L1$ + C$,8)
LEFT$(A$,M +
L)
LEN(string)
Returns length
of
string (zero
for
null
LEN(A$+ B$)
5/5
string). LEN("HOURS")
MID$(string,
p,
n, )
Returns substring
of
string with length
MID$(M$,5,2)
5/6
n and starting at positionp in string.
MID$(M$ + B$,P,L
-1)
RIGHT$(string,n)
Returns last n characters
of
string.
RIGHT$(NA$,7)
5/6
RIGHT$(AB$,M2)
STR$(numeric exp) Returns a string representation
of
the
STR$(1.2345)
5/6
evaluated argument.
STR$(A + B*2)
STRING$(n,char)
Returns a sequence STRING$(30,
".")
5/7
of
n charsymbols STRING$(25,"A")
using first character
STRING$(5,C$)
of
char.
TIME$
Returns date and time.
TIME$
5/8
VAL(string)
Returns a numeric value corresponding
VAL("1" + A$ +
"."
+C$) 5/8
to a numeric-valued string.
VAL(A$+
B$)
VAL(G1$)
*string
may
be
astring variable, expression, or constant.
A/12

Related product manuals