STR_UC, CONV_UC

Use the STR_UC or CONV_UC script function to convert all letters in a string to uppercase characters. These two script elements have the same function, they return a string where all letters are written in upper case. Numbers and special characters remain unchanged.

Syntax

STR_UC (String)
CONV_UC (String)

Parameters

  • STR_UC or CONV_UC
    Converts all letters in a string to upper case
  • String
    Alphanumeric string
    Format: script literal or script variable

Examples

The following example converts a string to uppercase. The string to convert is a string literal.

:SET &STRING# = CONV_UC("abcdefgh 123&%$§")

When the script is processed, the value of the script variable &STRING# is ABCDEFGH 123&%$§.

In the following example, a string is stored in a variable, and the variable is passed to the script function. The function converts the value to uppercase characters.

: SET &MSG# = "Please start the backup routine!"
:
SET &STRING# = CONV_UC(&MSG#)

When the script is processed, the value of the script variable &STRING# is PLEASE START THE BACKUP ROUTINE!

See also: