VBScript UCase Function
Definition and Usage
The UCase function can convert the specified string to uppercase.
Tip:See LCase function.
Syntax
UCase(string)
Parameter | Description |
---|---|
string | Required. Needs to be converted to uppercase string. |
Instance
Example 1
dim txt txt="This is a beautiful day!" document.write(UCase(txt))
Output:
THIS IS A BEAUTIFUL DAY!
Example 2
dim txt txt="This Is a Beautiful Day!" document.write(UCase(txt))
Output:
THIS IS A BEAUTIFUL DAY!