ASP Is Fun

Learning ASP
Free Course
Basics
Functions
SQL Commands
Sample Code


Servers / Setup
Host Reviews
Server Setup
Error Tips


Contract ASP
Development

Search For:


Intro to ASP


 
ASP Intro Ebook


LCase ASP String Function



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 original string variable is not altered.

A common problem with brand new web users is that when they type, they shout - they TYPE THEIR MESSAGE IN ALL CAPITALS. This is very difficult to read. If you have a form into which a user types a message, you might want to "help them out" by making their message more readable.

Say a user put in a message saying "I LOVE DIGIMON THEY ARE THE BEST ANIME EVER HOW COULD YOU LIKE POKEMON YOU MORON!" You could begin by turning their entire message into lowercase:

UserRant = LCase(UserRant)

That would at least turn their message into the more eye-friendly one of "i love digimon they are the best anime ever how could you like pokemon you moron". If you wanted to then do a bit more cleanup and make the first letter uppercase and so on, you can certainly do that!

ASP String Functions



Bookmark this site so you can reference it any time you have ASP questions in the future!




ASP Main Page | ASP Ebooks | Free ASP Course | Contact Lisa
All content copyright © 2012 Minerva WebWorks LLC. All rights reserved.

French Wedding


Free Newsletter!

Ebooks
Intro to ASP
ASP SQL DB
Members
Shopping


Introduction to ASP

Romance Tips
Irish Romance
Italian Romance
French Romance

ASP Poll
How do you handle 500 errors?
I don't
Page does nothing
Displays error
Emails error