Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mnemosyne.cs.du.edu!isis.cs.du.edu!ebergman From: ebergman@isis.cs.du.edu (Eric Bergman-Terrell) Newsgroups: comp.lang.pascal Subject: Re: What's wrong with this: Message-ID: <1991Apr20.023651.29308@mnemosyne.cs.du.edu> Date: 20 Apr 91 02:36:51 GMT References: <1991Apr20.011454.25016@javelin.sim.es.com> Sender: usenet@mnemosyne.cs.du.edu (netnews admin account) Reply-To: ebergman@isis.UUCP (Eric Bergman-Terrell) Organization: Nyx, Public Access Unix (sponsored by U. of Denver Math/CS dept.) Lines: 20 Disclaimer1: Nyx is a public access Unix system run by the University of Denver Disclaimer2: for the Denver community. The University has neither control over Disclaimer3: nor responsibility for the opinions of users. And another thing: I'm guessing that character 96 & 123 (or whatever they were) are 'a' and 'z', respectively. You can use the characters themselves in your program: if (string[i] >= 'a') and (string[i] <= 'z') then ... even better, you can use a set of the characters between 'a' and 'z': if (string[i] in ['a'..'z']) then ... Hang in there - you've made a good start! Terrell