string.ToUpper Method

Returns a copy of a String value where all of the alphabetic characters have been changed to upper case.

...string.ToUpper

Prerequisites

None

Parameters

None

Remarks

This method copies the value of a String variable and converts all of the alphabetic characters to upper case while leaving all of the non-alphabetic characters unchanged.

Examples

Dim stg_a, stg_b As String      ' Create two string variables
stg_a = "aBcDeF"
stg_b = stg_a.ToUpper ' stg_b set to "ABDCEF"

See Also

Strings | LCase Function |string.ToLower| UCase Function