Uppercase
From Xojo Documentation
Uppercase (the global function) is here for compatibility with Visual Basic. You should instead use String.Uppercase. |
Method
Converts all characters in a string to uppercase characters.
Syntax
result=sourceVariable.Uppercase Introduced 5.0
Part | Type | Description |
---|---|---|
result | String | A copy of the original string with all characters converted to their uppercase equivalent. |
sourceVariable | String | The original string. |
Notes
Returns the string with all alphabetic characters in uppercase.
Examples
The example below converts the value passed to uppercase.
Var result As String
Var source As String = "tHe Quick fOX"
result = source.Uppercase // returns "THE QUICK FOX"
source = "the 5 lazy dogs"
result = source.Uppercase // returns "THE 5 LAZY DOGS"
Var source As String = "tHe Quick fOX"
result = source.Uppercase // returns "THE QUICK FOX"
source = "the 5 lazy dogs"
result = source.Uppercase // returns "THE 5 LAZY DOGS"