Name
UCase Function
Syntax
UCase(string)
-
string
Use: Required
Data Subtype: String
A valid string expression.
Return Value
A Variant of subtype String.
Description
Converts a string to uppercase.
Rules at a Glance
UCase
affects only lowercase alphabetical letters; all other characters withinstring
remain unaffected.UCase
returnsNull
ifstring
contains aNull
.
VBA/VBScript Differences
VBA includes a UCase$
function that returns an
uppercase string rather than a uppercase string variant. Because
VBScript does not support strong typing, the function is not
implemented in VBScript.
See Also
LCase Function |
Get VBScript in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.