Official Content

Returns a specified character expression in uppercase letters.

Syntax

String.ToUpper()

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, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

Description

Converts all lowercase letters (a - z) in a character expression to uppercase 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"
&TxtUpper = &ArtistName.ToUpper()

you will go from this:

&ArtistName = "Van Gogh, Vincent"

to this:

&TxtUpper = "VAN GOGH, VINCENT"

See Also

ToLower method
Lower function




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