LCase Function

Tips >>ASP Functions

WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE


LCase is a commonly used ASP function that allows you to convert all characters in a string to their lower case versions. It only takes in one parameter, the string variable to operate on. The LCase function converts a specified string to lowercase. The string argument of the LCase function can be any valid string. All upper case letters in the string passed as an argument to LCase are converted to lower case, while all lower case letters and special characters remain the same. Returns a string that has been converted to lowercase. Only uppercase letters are converted to lowercase; all lowercase letters and nonletter characters remain unchanged. The string argument is any valid string expression. If string contains Null, Null is returned.

The Syntax of the Lcase function is :-

LCase(string)

Example#1 :-

Code :-
dim txt
txt="THIS IS A BEAUTIFUL DAY!"
document.write(LCase(txt))
Output :-

this is a beautiful day!

Example#2 :-

Code :-
dim txt
txt="She Is Beautiful!"
document.write(LCase(txt))
Output :-
she is beautiful!

Example#3 :-

Code :-
<%
sMyString = "ASPvirtualsplat.org"
sLowerCaseString = LCase(sMyString)
Response.Write(sLowerCaseString)
%>
Output :-
aspvirtualsplat.org

Example#4 :-

Code :-
<%
sMyString = "ASP-Hosting.ca"
sLowerCaseString = LCase(sMyString)
Response.Write(sLowerCaseString)
%>
Output :-
asp-hosting.ca

Example#5 :-

Before: Code: After:
small LCase("small") small
Norway LCase("Norway") norway
USA LCase("USA") usa

Example#6 :-

Code :-
<% =LCase("Aardvarks do not make good pets!") %>
Output :-
aardvarks do not make good pets!

Example#7 :-

Code :-
<% astring="Leopards also make bad pets!" %>
<% =LCase(astring) %>
Output :-
leopards also make bad pets!

 

 
E-mail : sales@virtualsplat.com
Phone : +91-9892413501

Whatsapp Icon +91-9967648641

Whatsapp Icon +91-9967648641