Skip to main content
Previous section   Next section

DOWNCASE

Coverts alphabetic characters to lowercase.

Synopsis

DOWNCASE(string)

Arguments

string An expression that resolves to a string.

Description

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

By default, DOWNCASE performs case conversion on ANSI Latin-1 letters. By default it does not convert Unicode letters on a Unicode Caché instance; it passes Unicode letters through unmodified. To perform case conversion on letters in other character sets, you must set the appropriate locale.

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

Examples

The following example uses the DOWNCASE function to return a string in all lowercase:

PRINT DOWNCASE("InterSystems");  ! Returns "intersystems"
Copy code to clipboard

See Also