Previous Topic: CALLX()Next Topic: CP()


CASE()

This function converts a string to uppercase or lowercase.

Syntax

CASE({UPPER|LOWER},string)

Parameters

UPPER

Translates to uppercase.

LOWER

Translates to lowercase.

string

1- to 256-character input string.

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 */