Uppercase

From Xojo Documentation

(Redirected from String.Uppercase)
Method

Converts all characters in a string to uppercase characters.

Syntax

result=Uppercase(value)
OR
result=stringVariable.Uppercase Introduced 5.0

Part Type Description
result String A copy of the original string with all characters converted to their uppercase equivalent.
value String The original string.
stringVariable String Any variable of type String.

Notes

Returns the string with all alphabetic characters in uppercase.

Examples

The example below converts the value passed to uppercase.

Dim s As String
s = Uppercase("tHe Quick fOX") // returns "THE QUICK FOX"
s = Uppercase("the 5 lazy dogs") // returns "THE 5 LAZY DOGS"

The following example uses the second syntax.

Dim s As String = "the 5 lazy dogs"
Dim result As String = s.Uppercase // displays "THE 5 LAZY DOGS"

See Also

Lowercase, Titlecase functions.