Uppercase Function

Converts all characters in a String to uppercase characters.

Syntax

result = Uppercase( value )

result = stringVariable.Uppercase( )


Parameters

value

String

The original string.


Return Value

Result

String

A copy of the original string with all characters converted to their uppercase equivalent.



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"
MsgBox s.uppercase //displays "THE 5 LAZY DOGS"

See Also

Lowercase, Titlecase functions.