Func Ucase
# VBScript UCase Function
* * Complete VBScript Reference Manual](#)
* * *
The UCase function converts a specified string to uppercase.
**Tip:** See also the LCase function.
### Syntax
UCase(string)
| Parameter | Description |
| :--- | :--- |
| string | Required. The string to be converted to uppercase. |
## Examples
## Example 1
txt="This is a beautiful day!"
document.write(UCase(txt))
The output of the above example:
THIS IS A BEAUTIFUL DAY!
[Try it Β»](#)
## Example 2
txt="This is a BEAUTIFUL day!"
document.write(UCase(txt))
The output of the above example:
THIS IS A BEAUTIFUL DAY!
[Try it Β»](#)
* * Complete VBScript Reference Manual](#)
YouTip