VBScript UCase 函數(shù)
定義和用法
UCase 函數(shù)可把指定的字符串轉(zhuǎn)換為大寫。
提示:請(qǐng)參閱 LCase 函數(shù)。
語(yǔ)法
UCase(string)
參數(shù) | 描述 |
---|---|
string | 必需的。需被轉(zhuǎn)換為大寫的字符串。 |
實(shí)例
例子 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!