|
Upper / Lower case conversion
This shows how to convert a string to lower case
or to upper case using the LCase() and UCase() functions . This
can be useful when accepting users entries on a form ensuring
that the entries are all in the same case , this is especially
useful if you are storin that data in a database.
Code :
<%
Dim strSample
'our sample string
strSample = "Our Sample String To Convert"
'convert to lower case
Response.Write LCase(strSample)
Response.Write "<br>"
'convert to upper case
Response.Write UCase(strSample)
%>
|