aqString.ToUpper Method

Applies to TestComplete 15.70, last modified on December 17, 2024

Description

The ToUpper method returns a copy of the input string that is converted to upper case.

Declaration

aqString.ToUpper(InputString)

InputString [in]    Required    String    
Result String

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

InputString

Specifies the original string.

Result Value

The uppercased version of the input string.

Example

The code below converts the specified string to the upper case and posts it to the test log.

JavaScript, JScript

function LetterCaseDemo()
{
  var str = "The word 'Champagne' is of French origin";

  // Converts the specified string to the upper case
  // and posts it to the test log
  Log.Message( aqString.ToUpper(str) );
}

Python

def LetterCaseDemo():
  str = "The word 'Champagne' is of French origin"
  # Converts the specified string to the upper case 
  # and posts it to the test log
  Log.Message(aqString.ToUpper(str))

VBScript

Sub LetterCaseDemo
  Dim str
  str = "The word 'Champagne' is of French origin"

  ' Converts the specified string to the upper case
  ' and posts it to the test log
  Log.Message( aqString.ToUpper(str) )

End Sub

DelphiScript

function LetterCaseDemo;
var str;
begin
  str := 'The word ''Champagne'' is of French origin';

  // Converts the specified string to the upper case
  // and posts it to the test log
  Log.Message( aqString.ToUpper(str) );
end;

C++Script, C#Script

function LetterCaseDemo()
{
  var str = "The word 'Champagne' is of French origin";

  // Converts the specified string to the upper case
  // and posts it to the test log
  Log["Message"]( aqString["ToUpper"](str) );
}

See Also

Working With Strings
ToLower Method

Highlight search results