Skip to main content

UPCASE

Converts alphabetic characters to uppercase.

Synopsis

UPCASE(string)

Arguments

string An expression that resolves to a string.

Description

The UPCASE function returns a string of characters with all lowercase letters converted to uppercase. Characters other than lowercase letters are passed through unchanged. If you specify a null string, UPCASE returns a null string.

By default, UPCASE performs case conversion on ANSI Latin-1 letters. To perform case conversion on letters in other character sets, you must set the appropriate locale.

The OCONV function with the “MCU” option is functionally identical to the UPCASE function. To convert uppercase to lowercase, use the DOWNCASE function.

Examples

The following example uses the UPCASE function to convert lowercase letters to uppercase:

MyString = "Caché from InterSystems"
PRINT UPCASE(MyString) 
  ! Returns "CACHÉ FROM INTERSYSTEMS"

See Also

FeedbackOpens in a new tab