Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see Why Migrate to InterSystems IRIS?

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"

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

Feedback