Skip to main content
Previous sectionNext section

UCase

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"
Copy code to clipboard

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)
Copy code to clipboard

(Note that the above example requires a Unicode installation of Caché.)

See Also