home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!rat!ucselx!crash!tech
- From: tech@crash.cts.com (Don Bontemps)
- Newsgroups: comp.lang.pascal
- Subject: Why doesn't this cause an error?
- Message-ID: <1993Jan01.220029.27699@crash>
- Date: 2 Jan 93 06:00:29 GMT
- Organization: CTS Network Services (crash, ctsnet), El Cajon, CA
- Lines: 14
-
- I know there is probably an easy answer to this question, but here is
- a portion of a routine that I am using to convert a lowercase string
- into an uppercase string.
-
-
- readln(comment);
- for l := 1 to length of comment do comment[l] := upcase(comment[l]);
-
-
-
- If the user doesn't enter anything, this causes the length of comment to
- become zero and what confuses me is that this event does not cause any
- error whatsoever. I would figure that "for l := 1 to 0" to cause a
- run-time error or some other type of error, but it doesn't. Why not??
-