VBScript UCase Function



VBScript UCase

VBScript UCase Function returns the string after converting the entered string into UPPER case letters.

Syntax :

UCase(String)

Example :

<!DOCTYPE html>
<html>
<body>
<script language="vbscript" type="text/vbscript">

str = "Google"
document.write("ex 1 : " & UCase(var) & "<br />")

var="GooGlE"
document.write("ex 2 : " & UCase(var) & "<br />")

var="GOOGLE"
document.write("ex 3 : " & UCase(var) & "<br />")

</script>
</body>
</html>

Output :

After running above script in IE we will get following output –

ex 1 : GOOGLE
ex 2 : GOOGLE
ex 3 : GOOGLE