contents.gifprev1.gifnext1.gif

CHANGE_CASE

Description:

CHANGE_CASE modifies the case of all alphabetic text in the first parameter. Characters can be made all upper, all lower, or inverted from either to the other depending on the second parameter, which is a nu/TPU keyword: UPPER, LOWER, or INVERT.

Syntax:

NEW$STRING := CHANGE_CASE ( text, {INVERT | LOWER | UPPER} )

Valid text types are: Buffer, Range, or String.

Example:

The following example changes all of the characters in PASTE$BUFFER to uppercase.

CHANGE_CASE (PASTE$BUFFER, UPPER);

Errors:

TPU$_BADKEY Wrong keyword.

TPU$_NOTMODIFIABLE Current buffer is READ_ONLY.

Related Builtins:

EDIT