Welltech SIPIVR 6800GS V.2.1 User Manual
Page 108
107
beginning at position nOffset.
StrLeft
string StrLeft (string s, int
nCount)
The same as StrMid(s, 0,
nCount
).
StrLeft(“abcd
e”,3)
abc
StrRight
string StrRight(string s, int
nCount)
The same as StrMid(s,
StrLen(s)-nCount, nCount).
StrRight(“ab
cde”,3)
cde
StrDel
string StrDel(string s, int
nOffset, int nCount)
Deletes nCount characters of
string s beginning at position
nOffset
.
StrDel(“abcd
efg”,2,4)
abg
StrIns
string StrIns(string s1, int
nOffset, string s2)
Inserts s2 to s1 before nOffset.
StrIns(“aabb
”,2,”HHH”)
aaHHHb
b
StrLower
string StrLower(string s)
Returns lower-case result
StrLower(“A
bcDefG”)
abcdefg
StrUpper
string StrUpper(string s)
Returns upper-case result.
StrUpper(“A
bcDefG”
ABCDEF
G
StrTrim
string StrTrim(string s)
Returns a new string without
leading spaces, trailing spaces,
or control characters.
StrTrim
(“△△abc
△
def△g△”)
abc△def
△
g
△
: white
space
Str2Num
double Str2Num(string s)
Converts the string s to a
double value.
Str2Num(“12
.32”)
12.32
Num2Str
string Num2Str(float n)
Converts the floating point
number n to a string.
Num2Str(16
8.63)
168.63
Pointer Access
Symbol Equivalent Description Example Result
PtrStr
string PtrStr(str)
Get the string value of a
variable which name is stored
in another variable.
PtrInt
int PtrInt(str)
Get the integer value of a
variable which name is stored
in another variable.
PtrDbl
double PtrDbl (str)
Get the double value of a
variable which name is stored
in another variable.
S2VNam
e
string S2VName(str)
Convert string into a variable
name
Please refer to
Appendix C for
more details.