Strings Quick Reference
The following table lists methods to manipulate strings.
Statement | Purpose | Reference |
---|---|---|
Chr |
Converts a character code to a string. |
|
Format |
Returns an expression in a format that you specify. |
|
InStr |
Returns the position of one string in another string. |
|
LCase |
Converts a string to lower case. |
|
Left |
Returns a string copied from the beginning of another string. |
|
Len |
Returns the length of a string or size of a variable. |
|
Like |
Compares the contents of two strings. |
|
Lset |
Copies one string to another string or assigns a custom variable to another variable. |
|
LTrim |
Removes leading spaces from a string. |
|
Mid |
Returns a portion of a string. |
|
Mid = string |
Replaces part or all of one string with another string. |
|
Option Compare |
Specifies the default method for string comparisons to case-sensitive or not case-sensitive. |
|
Right |
Returns the right portion of a string. |
|
Rset |
Right-justifies one string in another string. |
|
RTrim |
Removes trailing spaces from a string. |
|
Space |
Returns a string of spaces. |
|
Str |
Returns the string representation of a number. |
|
StrComp |
Compares two strings. |
|
String |
Returns a string that consists of a repeated character. |
|
Trim |
Removes leading and trailing spaces from a string. |
|
UCase |
Converts a string to upper case. |
|
Val |
Returns the numeric value of the first number that it finds in a string. |