Upper function
Syntax
Upper(str)
Description
Use the Upper function to convert a text string to all uppercase. This function can be used to perform a case-insensitive string comparison. Upper does not change characters that are not letters or characters that do not have case sensitivity.
Parameters
| Parameter | Description |
|---|---|
|
str |
A String to convert to uppercase. |
Returns
Returns a String value equal to str converted to all uppercase.
Example
The following example converts the contents of two string variables to uppercase before determining if they are equal to simulate a case-insensitive comparison:
If Upper(&STR1) = Upper(&STR2) Then
/* do something */
End-If;
Related Topics