Caché Basic Reference
UCase
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Class Reference   
Search:    

Returns a string that has been converted to uppercase.
Synopsis
UCase(string)
Arguments
The string argument is any valid string expression.
Description
Only lowercase letters are converted to uppercase. Uppercase letters and non-letter characters remain unchanged.
Examples
The following example uses the UCase function to convert lowercase letters to uppercase:
Dim MyString
MyString = "Caché from InterSystems"
Println UCase(MyString) ' Returns "CACHÉ FROM INTERSYSTEMS"
 
The following example converts the first four letters of the Greek alphabet from lowercase to uppercase:
Dim MyString
MyString = Chr(945)&Chr(946)&Chr(947)&Chr(948)
Println MyString
Println UCase(MyString)
 
(Note that the above example requires a Unicode installation of Caché.)
See Also