VBScript LCaseFunction


VBScript 参考手册Complete VBScript Reference

The LCase function converts a specified string to lowercase.

Tip:See the UCase function.

Syntax

LCase(string)

Parameter Description
string Required. The string to convert to lowercase.

Examples

Example 1

<script type="text/vbscript">

txt="THIS IS A BEAUTIFUL DAY!"
document.write(LCase(txt))

</script>

Output of the above example:

this is a beautiful day!

Try it Yourself »

Example 2

<script type="text/vbscript">

txt="This is a BEAUTIFUL day!"
document.write(LCase(txt))

</script>

Output of the above example:

this is a beautiful day!

Try it Yourself »

VBScript 参考手册Complete VBScript Reference Other Extensions