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 perform the same function. These script functions return a string with all letters written in uppercase. Numbers and special characters are unchanged.
Syntax
STR_UC (String)
CONV_UC (String)
Parameters
- STR_UC or CONV_UC
- 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: