Professional Documents
Culture Documents
Len (string)
Returns length number of characters of the string beginning at position start. If length is omitted,
the function returns all characters from the start position through the end of the string.
EXAMPLES:
Function
Left (January, 3)
Resulting String
Jan
Right (January, 2)
ry
Mid (January, 2, 1)
Mid (January, 4, 2)
ua
Left (strProgName, 6)
Visual
Right (strProgName, 5)
Basic
Mid (strProgName, 8, 1)
Mid (strProgName, 8)
Basic
To search a string to determine if it contains another string, use the Instr function.
Instr (start, string1, string2 [, compare])
start is the numeric expression that sets the starting position for the search,
string1 is the string being searched
string2 is the string expression you want to find.
Compare is either 0 or 1. 0 means case-sensitive, the default setting.
Examples:
Function
Instr ( 1, Have a nice day, nice, 0)
12
Chr(character code)
StrReverse Function
Requirements
Version 2
Returns a string in which the character order of a specified string is reversed.
StrReverse(string1)
The string1 argument is the string whose characters are to be reversed. If string1 is a zero-length string (""), a
zero-length string is returned. If string1 is Null, an error occurs.
Remarks
The following example uses the StrReverse function to return a string in reverse order:
Dim MyStr
MyStr = StrReverse("VBScript")