Make your own free website on Tripod.com
 
 
 Tips & Trix
On the case: Converting Lower Case Characters to Upper Case and vice versa
Home
PUBz
Grafx Pax
Tips & Trix
Neo-Linx
Neo-Talk
Neo-Filez
Search NeoDezign

 

You might find a situation where you need to convert user input text from lower case to upper case, (or upper to lower case), to maintain consistancy in your program. In the NeoBook\Samples folder there is a jewel of a script in the HangMan example game made by NeoSoft that does this quite effectively. This slick case convert routine uses some fancy string manipulation in a loop to get the job done. 

Let's pick it apart ... 


....

PAGE ONE