String Functions
From OpenOffice.org Wiki
OpenOffice.org Basic supports several runtime functions for string manipulation. Some of the functions are explained briefly in the following:
-
Ascreturns the the Unicode value. -
Chrreturns a string containing the character that is specified by the ASCII or Unicode value passed to the function. This function is used to represent characters, such as '"' or the carriage return code (chr(13)) that can not be written in the "" notation. -
Strconverts a numeric expression to a string. -
Valconverts a string to a numeric value. -
LCaseconverts all letters in a string to lowercase. Only uppercase letters within the string are converted. All lowercase letters and nonletter characters remain unchanged. -
UCaseconverts characters in a string to uppercase. Only lowercase letters in a string are affected. Uppercase letters and all other characters remain unchanged. -
Leftreturns the leftmost ānā characters of a string expression. -
Midreturns the specified portion of a string expression. -
Rightreturns the rightmost "n" characters of a string expression. -
Trimremoves all leading and trailing spaces of a string expression.
| Content on this page is licensed under the Public Documentation License (PDL). |

