|
UCase ASP String FunctionUCase is a commonly used ASP function that allows you to convert all characters in a string to their upper case versions. It only takes in one parameter: * The string variable to operate on The original string variable is not altered. Let's say you have a form in which a user types in a model number. You then want to compare that model number against a database of models to get more information. You have millions of model numbers, so you don't want to do a drop down or something like that. But if the user starts typing in lowercase letters, say "xyg142" or "Xyg142", you will have trouble doing a search properly. So you use: ModelNo = UCase(ModelNo) That would turn both of the above examples into "XYG142" without the user having to think about which way they enter the information. ASP String Functions Bookmark this site so you can reference it any time you have ASP questions in the future! All content copyright © 2012 Minerva WebWorks LLC. All rights reserved.
|
|