aqString.ToLower Method

Applies to TestComplete 14.72, last modified on April 22, 2021

Description

The ToLower method returns a copy of the input string that is converted to lower case.

Declaration

aqString.ToLower(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 lowercased version of the input string.

Example

The code below converts the specified string to the lower case.

JavaScript, JScript

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

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

Python

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

VBScript

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

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

End Sub

DelphiScript

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

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

C++Script, C#Script

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

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

See Also

Working With Strings
ToUpper Method

Highlight search results