本页内容
上一节: Func_strreverse 下一节: Func_createobject

VBScript UCase 函数

完整的 VBScript 参考手册

UCase 函数把指定的字符串转换为大写。

提示:请参阅 LCase 函数。

语法


UCase(string)

参数 描述
string 必需。需被转换为大写的字符串。

实例 1

示例

<script type="text/vbscript">

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>

以上实例输出结果:


示例

THIS IS A BEAUTIFUL DAY!

完整的 VBScript 参考手册

上一节: Func_strreverse 下一节: Func_createobject
此页面最后编辑于2022年8月17日 (星期三) 17:59。