Upper Case / Lower Case Data ASP Script - ASP Web Pro
  Active Server Pages Programming by ASP Web Pro

ASP Scripts

UPPER AND LOWER CASE DATA

For consistency purposes, it is often a good idea to insure that all of your database records contain all upper or lower case letters. If you have an application that matches records between multiple tables or verifies data like with a password security application, having upper and lower case data can cause havic for you. So to keep this from becoming a problem, you can use the UCASE and LCASE.

<%
DIM strPassword
strPassword = "Jamestown"

Response.Write "Upper Case: " & UCASE(strPassword) & "<br>"
Response.Write "Lower Case: " & LCASE(strPassword)
%>

Here is how it will display:
Upper Case: JAMESTOWN
Lower Case: jamestown

Enjoy!

< Back to ASP Scripts


 

 

Main Menu
Home
ASP Scripts
ASP Tutorials
JavaScripts
Awards
Contact Us

Email This Page

Other Resources
ASP Web Hosting
Search Engine Submission
Programming Help

 

 

 

Other ASP Web Sites

Site Map

 

Last Updated:
04 July 2009