UCase Function

Converts a string to upper case. Only lower-case characters are converted. Any upper-case characters or non-letter characters are returned unchanged.

UCase (string)

Parameters

String  -  (Input, expression, Required)

Specifies the string to convert. If a numeric value is passed, it is first converted into a string. If a non-string value is passed, the result is Error. If Null is passed, Null is returned.

Return Value

The specified string in upper-case form.

Examples

UCase (“abc”)

Returns “ABC”

UCase (“ABC”)

Returns “ABC”

UCase (“an as/400”)

Returns “AN AS/400”

UCase (123)

Returns “123”

UCase (Null)

Returns Null

UCase (Error)

Returns Error

TIP:

Functions are specifically for use in the Macro Editor. Refer to Microsoft's official VB and JScript documentation for scripting equivalents.

See Also

Functions | Asc function | Chr function | CSet function | Format function | InStr function | LCase function | Left function | Len function | LSet function | LTrim function | Mid function | Replace function | Right function | RSet function | RTrim function | Space function | String function | TCase function | Trim function | UBound function | UCase function


© 2004-2021 looksoftware. All rights reserved.