COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button
VB SCRIPT INSTR AND LCASE FUNCTION
InStr Function
The InStr Function returns the first occurrence of one
string within another string. The search happens from left to right.
LCase Function
The LCase Function returns the string after converting the entered string into lower case letters.
Syntax
Lcase(String)
Example
<!DOCTYPE html>
<html>
<body>
<script language="vbscript" type="text/vbscript">
var="Microsoft VBScript"
document.write("Line 1 : " & LCase(var) & "<br />")
var="MS VBSCRIPT"
document.write("Line 2 : " & LCase(var) & "<br />")
var="microsoft"
document.write("Line 3 : " & LCase(var) & "<br />")
</script>
</body>
</html>
When you save it as .html and execute it in Internet Explorer,
then the above script will produce the following result:
Line 1 : microsoft vbscript
Line 2 : ms vbscript
Line 3 : microsoft
No comments:
Post a Comment