VBScript UCase 函数

定义和用法

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

提示:请参阅 LCase 函数。

语法

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

本在线速查手册由www.w↘↙♀3↘↙♀x↘↙♀u↘↙♀e.com提供,请勿盗用!

实例

例子 1

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

输出:

THIS IS A BEAUTIFUL DAY!

例子 2

dim txt
txt="This Is a Beautiful Day!"
document.write(UCase(txt))

输出:

THIS IS A BEAUTIFUL DAY!