Download Pacific Scientific 950 Basic Reference Manual

Transcript
String
function
Description
ASC
string
int
ASCII code for 1st char
CHR$
int
string
One-character string containing the
character with the ASCII code of arg. If arg
255, returns CHR$(arg % 256).
HEX$
int
string
printable hexadecimal rep of arg (without
leading &H)
string
one-character string, read from serial port.
returns “” if no char available
INKEY$
INSTR
[pos],str1,str2
int
index of str2 in str1, or 0 if not found.
optional first arg specifies where to start
search (defaults to position 1)
LCASE$
str
str
returns lower-case copy of arg
LEFT$
str,n
str
returns n leftmost chars of str
LEN
str
int
returns length of str in bytes
LTRIM$
str
str
trim leading spaces
MID$
str,n[,m]
str
returns substring starting at position n [for
up to to m bytes].
OCT$
n
str
octal string representation of arg
RIGHT$
str,n
str
rightmost n chars of str
RTRIM$
str
str
trim trailing spaces
SPACE$
n
str
returns a string of n spaces
STR$
n
str
decimal string representation of str
str
return n copies of first char of str
STRING$ n,ch
str
return n copies of char
TRIM$
str
str
trim leading AND trailing spaces
UCASE$
str
str
returns upper-case copy of arg
VAL
str
numeric returns numeric value of str
STRING$
1 - 28
n,str
MA950-LR