Official Content

Returns a specified character expression in lowercase letters.

Syntax

String.ToLower()

Where:

String
  
 Is a character expression based on the Character/VarChar/LongVarChar data type.
  

Type Returned:
Character

Scope

Data Types: Character, VarChar, LongVarChar
Generators: .NET, .NET Framework, Java, RPG, Cobol, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

Description

Converts all uppercase letters (A - Z) in a character expression to lowercase letters (a - z). All the other characters in the character expression remain unchanged.

Note: In Cobol and RPG for iSeries the character expression can be up to 256 bytes long.

Samples

By defining the following code in an Event:

&ArtistName = "Van Gogh, Vincent"
&TxtLower = &ArtistName.ToLower()

you will go from this:

&ArtistName = "Van Gogh, Vincent"

to this:

&TxtLower = "van gogh, vincent"

See Also

Lower function
Upper Function
ToUpper method

   


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant