Skip to main content

StrUpper

Use this function to convert text in a symbol or character string to uppercase letters.

You may find the StrUpper function useful for comparison purposes. For example, suppose a complete symbol in your system appears in the format A11234, but with either an uppercase or lowercase A. You can use the StrUpper function to convert all lowercase letters in account numbers to uppercase.

Syntax:

STRUPPER ("String")

where:

  • String is a character string, enclosed in double quotation marks.

Code example:

CREATE VARIABLE StrTemp1 AS STRINGVariable = STRUPPER ("SourceString")SET VARIABLE StrTemp1 = STRUPPER ("StringTest")

// StrTemp1 will equal "STRINGTEST" (without the double quotation marks)

Was this article helpful?

We're sorry to hear that.