toUpperCase() | Zoho QEngine Help

toUpperCase()

In a nutshell
The toUpperCase() function takes a string as an argument and returns the same string with all letters converted to upper case. The return type is Text. It is useful in test scripts where text values need to be normalized to upper case before comparison or assertion.

Overview

The toUpperCase() function takes a string as an argument. It returns the string with all letters in upper case.

Return Type

  • Text

Syntax

  1. <variable> = <string>.toUpperCase();

(OR)

  1. <variable> = toUpperCase( <string> );

(OR)

  1. <variable> = <string>.upper();

(OR)

  1. <variable> = upper( <string> );

ParameterDescriptionData type
<variable>Variable which will contain the returned string.TEXT
<string>All letters in this string will be converted to upper case.TEXT

Examples


  1. mainString = "Create online database applications";
  2. newText = upper(mainString);      // returns "CREATE ONLINE DATABASE APPLICATIONS"