VBScript UCaseFunction


VBScript 参考手册Complete VBScript Reference

The UCase function converts the specified string to uppercase.

Tip:Please refer to the LCase function.

Syntax

UCase(string)

Parameters Description
string Required. The string to be converted to uppercase.

Examples

Example 1

<script type="text/vbscript">

txt="This is a beautiful day!"
document.write(UCase(txt))

</script>

The output of the above example is:

THIS IS A BEAUTIFUL DAY!

Try it yourself »

Example 2

<script type="text/vbscript">

txt="This is a BEAUTIFUL day!"
document.write(UCase(txt))

</script>

The output of the above example is:

THIS IS A BEAUTIFUL DAY!

Try it yourself »

VBScript 参考手册Complete VBScript Reference Other Extensions