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 參考手冊
