Developer Documentation Library > UNICOM Intelligence Function Library > Text functions > UCase
 
UCase
Converts a string to uppercase.
Syntax
UCase(<value>)
Parameter
<value>
Type: Text
Text value to convert to uppercase. See also Specifying text strings as arguments.
(return)
Type: Text
Uppercase copy of <value>.
Notes
The input string is converted to uppercase, according to the rules of the input locale.
If the current data value is NULL, <value> is "" and the return value is "".
Examples
This example returns an uppercase copy of the contents of the name variable:
name.UCase()
The following example uses the Trim and Mid functions in addition to the UCase function. The example returns characters 5 to 10 of the name variable converted to uppercase and with any leading or trailing spaces removed:
Trim(UCase(name.Mid(4, 5)))
See also
AscW
Text functions