TUTORIAL编程语言与算法FETCHED
VBScript UCase 函数
VBScript UCase 函数 完整的 VBScript 参考手册 UCase 函数把指定的字符串转换为大写。 提示:请参阅 LCase 函数。 语法 UCase(string) 参数 描述 string 必需。需被转换为大写的字符串。 实例 实例 1 <script type='text/vbscript'> txt='..
更新于 2026/7/16
教程详情页默认 noindex。
VBScript UCase 函数
完整的 VBScript 参考手册
UCase 函数把指定的字符串转换为大写。
提示:请参阅 LCase 函数。
语法
UCase(string)
| 参数 | 描述 |
|---|---|
| string | 必需。需被转换为大写的字符串。 |
实例
实例 1
<script type="text/vbscript">
txt="This is a beautiful day!"
document.write(UCase(txt))
</script>
txt="This is a beautiful day!"
document.write(UCase(txt))
</script>
以上实例输出结果:
THIS IS A BEAUTIFUL DAY!
尝试一下 »
实例 2
<script type="text/vbscript">
txt="This is a BEAUTIFUL day!"
document.write(UCase(txt))
</script>
txt="This is a BEAUTIFUL day!"
document.write(UCase(txt))
</script>
以上实例输出结果:
THIS IS A BEAUTIFUL DAY!
尝试一下 »
完整的 VBScript 参考手册