comp.lang.ada
 help / color / mirror / Atom feed
From: maggiejohn@aol.com (MaggieJohn)
Subject: Re: Strings
Date: 2000/05/27
Date: 2000-05-27T00:00:00+00:00	[thread overview]
Message-ID: <20000527160256.22891.00000308@ng-fw1.aol.com> (raw)
In-Reply-To: 8gntbr$mei$2@news.cowan.edu.au

Loop through your string and check that each character is between 'a' and 'z'
or 'A' and 'Z'.   Are you familiar with ASCII codes?   Your string is made up
of ASCII codes.   Some are for letters, which sounds like what you want.   Some
are for numbers, punctuation, and some are non-printable control characters.

- Maggie

"Karlene" asked:
How can you validate a string (eg a name of a person) to check that it only
contains characters, not integers?  I have tried exceptions in my program,
but it dosent seem to cover it.




  reply	other threads:[~2000-05-27  0:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-27  0:00 Strings Karlene
2000-05-27  0:00 ` MaggieJohn [this message]
2000-05-28  0:00   ` Strings Robert Dewar
2000-06-03  0:00     ` Strings Robert I. Eachus
2000-05-27  0:00 ` Strings Robert Dewar
2000-05-27  0:00 ` Strings David C. Hoos, Sr.
2000-05-27  0:00 ` Strings Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
2000-12-21 21:09 Strings Beard, Frank
2000-12-22 14:19 ` Strings Jef Kelmo
2000-12-22 14:49   ` Strings Larry Kilgallen
2000-12-22 16:35   ` Strings Marin David Condic
2000-12-23 21:04   ` Strings Georg Bauhaus
2000-12-21 17:45 Strings Jef Kelmo
2000-12-21 18:01 ` Strings Jef Kelmo
2000-12-21 18:47 ` Strings mark_lundquist
2000-12-21 18:47 ` Strings mark_lundquist
2000-12-21 23:31   ` Strings gdemont
2000-12-21 19:03 ` Strings David C. Hoos, Sr.
1995-01-25 15:08 Strings Ray Toal
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox