comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Strings
Date: 2000/05/27
Date: 2000-05-27T00:00:00+00:00	[thread overview]
Message-ID: <8go4t2$mnk$1@nnrp1.deja.com> (raw)
In-Reply-To: 8gntbr$mei$2@news.cowan.edu.au

In article <8gntbr$mei$2@news.cowan.edu.au>,
  "Karlene" <kejohnso@student.ecu.edu.au> wrote:
> 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.


To be a little clearer, a string is defined to be a sequence
of characters, so every element of a string is a character.
So the idera of checking to see if a string contains only
characters is meaningless. If you are asking how to
distinguish digits from letters, then that is done by
simple tests, and you really should be able to figure this
out for yourself.

Exceptions are most certainly irrelevant. I suspect you are
flailing around at random here, you really need to make more
of an effort to understand what you are doing. I would suggest
working your way carefully and completely through one of the
online tutorials at www.adapower.com, or really reading through
your text book carefully.

You may be able to bash a small program into working without
understanding what you are doing, but this definitely will
not scale to real programs!


Sent via Deja.com http://www.deja.com/
Before you buy.




  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 ` Robert Dewar [this message]
2000-05-27  0:00 ` Strings MaggieJohn
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.
  -- 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