Returns a specified character expression in uppercase letters.
String.ToUpper()
Where:
String
Is a character expression based on the Character/VarChar/LongVarChar data type.
Type Returned:
Character
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)
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"
ToLower method
Lower function