
-----------------------------------
uberwalla
Mon Nov 27, 2006 6:53 pm

Word Cleaning Code
-----------------------------------
ok so for class i got to do this assignment where u input a word and it cleans it for u. by clean it means that if u have anything other then letters then it removes it. Example: u enter u%tr9e. then it outputs utre.
i have the program done in a way and it works except for ONE thing it seems.
I get this msg: Substring Index Is Greater Than Length Of String
it happens when i actually input the word to clean
and it high lights this line: 
  if x (letterNum) >= chr (97) and x (letterNum) = chr (97) and x (letterNum) 