Previous Topic: CALLX()

Next Topic: CP()

CASE()

Use the CASE() function to convert a string to uppercase or lowercase.

Syntax

The CASE() function has this syntax:

CASE({UPPER|LOWER},string)

Arguments

The CASE() function takes these arguments:

UPPER

Translates to uppercase.

LOWER

Translates to lowercase.

string

1- to 256-character input string.

Return Codes

The CASE() function produces these return codes:

101 - 102

ARG n MISSING OR INVALID

Example

case('lower','ABC') == 'abc'   /* Translate a string to lowercase */
case('upper','abc') == 'ABC'   /* Translate a string to uppercase */