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!
Still stuck? Please be sure to Contact Lisa Shea - that's me - and I'm happy to lend a hand. I've been programming in ASP classic for many, many years and can help you get through your coding challenge quickly and easily!
To have an easy to use, easy to read reference on hand as you code, also check out my Intro to ASP Book which comes in both ebook and paperback format.
Thanks for stopping in to my page - and good luck!
ASP String Functions