|
UCase(string) returns
string
with all its lowercase letters converted to uppercase letters.
|
|
LCase(string) returns
string
with all its uppercase letters converted to lowecase letters.
|
|
LTrim(string) removes all the
spaces from the left side of
string.
|
|
RTrim(string) removes all the
spaces from the right side of
string.
|
|
Trim(string) removes spaces from
both the left and right of
string.
|
|
Space(number) returns a string
consisting of number
spaces.
|
|
String(number, character) returns
a string consisting of
character repeated
number
times.
|
|
Len(string) returns the number of
characters in string
|
|
Len(variable) returns the number
of bytes required by variable.
|
|
LenB(string) returns the number of
bytes required to store string.
|
|
StrReverse(string) returns
string
with the characters in reverse.
|
|
StrComp(string1, string2, comparetype)
is used to perform string comparisons. If
comparetype
is zero or omitted, the two strings are compared as if uppercase letters
come before lowercase letters. If
comparetype
is one, the two strings are compared as if upper- and lowercase letters
are the same. StrComp
returns -1 if string1
is less than string2.
It returns 0 if they are the same, and 1 if
string1
is greater than string2.
|
|
Right(string, number) returns the
number
rightmost characters of string.
|
|
RightB(string, number) works like
Right
but number
is taken to be the number of bytes rather than characters.
|
|
Left(string, number) returns the
number
leftmost characters of string.
|
|
LeftB(string, number) works like
Left
but number
is taken to be the number of bytes rather than characters.
|
|
Mid(string, start, length) returns
length
characters from string,
starting at position start.
When length
is greater than the number of characters left in the string, the rest of
the string is returned. If
length is not specified, the rest of
the string starting at the specified starting position is returned.
|
|
MidB(string, start, length) works
like Mid,
but start
and length
are both taken to be byte numbers rather than character numbers.
|
|
InStr(start, string1, string2, comparetype)
is used to check if and where
string2 ocurrs within
string1.
start
is an optional argument that specifies where in
string1
to start looking for string2.
comparetype
is an optional argument that specifies which type of comparison to
perform. If comparetype
is 0, a binary comparison is performed, and uppercase letters are
distinct from lowercase letters. If
comparetype
is 1, a textual comparison is performed, and uppercase and lowercase
letters are the same. InStr
returns 0 if string1
is empty (" "), if string2
is not found in string1,
or if start
is greater than the length of
string2. It returns Null if either
string is Null. It returns
start if
string2
is empty. If string2
is successfully found in
string1, it returns the starting
position where it is first found.
|
|
InStrB works like
InStr
except that the start position and return value are byte positions, not
character positions.
|
|
InStrRev(string1, string2, start, comparetype)
starts looking for a match at the right side of the string rather than
the left side. start
is by default -1, which means to start at the end of the string.
|
|
Replace(string, find, replace, start, count, comparetype)
is used to replace ocurrences of find with
replace
in string.
start, count
and comparetype
are optional, but if you want to use one, you must use the ones that
come before it. start
indicates where the resulting string will start and where to start
searching for find.
It defaults to 1. count
indicates how many times to perform the replacement. By default,
count
is -1, which means to replace every ocurrence. If
comparetype
is 1, a textual comparison is performed, and uppercase and lowercase
letters are the same.
|
|
Filter(arrStrings, SearchFor, include, comparetype)
searches an array of strings,
arrStrings, and returns a subset of
the array. include
is a Boolean value. if include
is True, filter
searches through all the strings in
arrStrings
and returns an array containing the strings that contain
SearchFor.
If include
is False, filter
returns an array of the strings that do not contain
SearchFor.
include
is optional and defaults to True.
comparetype
works the same as in the other string functions. If you want to use
comparetype,
you must use include.
|
|
Split(expression, delimiter, count, comparetype)
takes a string and splits it into an array of strings.
expression
is the string to split up. If
expression is zero length,
Split
returns an array of no elements.
delimiter
is a string that indicates what is used to separate the sub-strings in
expression.
This is optional; by default the delimiter is a space. If
delimiter
is zero length
(" "), an array of one element consisting of the whole string is
returned. count
is used to specify a maximum number of sub-strings to be created. The
default for count
is -1, which means no limit. If
comparetype
is 0, a binary comparison is performed, and uppercase letters are
distinct from lowercase letters. If
comparetype
is 1, a textual comparison is performed, and uppercase and lowercase
letters are the same.
comparetype is only useful when the
delimiter you have chosen is a letter.
|
|
Join(stringarray, delimiter) does
just the opposite of Split.
It takes an array of strings and joins them into one string, using
delimiter
to separate them. delimiter
is optional; space being the default.
|