From: Florian Weimer <fw@deneb.cygnus.argh.org>
Subject: Re: Case Sensitivity
Date: 2000/05/11
Date: 2000-05-11T17:41:49+00:00 [thread overview]
Message-ID: <87zopxt25e.fsf@deneb.cygnus.argh.org> (raw)
In-Reply-To: 958056490.47876@hearts.q-net.net.au
"Cameron McShane" <cazza@aceonline.com.au> writes:
> We need a menu that needs to be case-'in'sensitive. I am using an enumerated
> data type for the 3 menu options ie:
>
> type Menu_Options is (buy, read, done)
>
> If the user is to be allowed to enter Buy or BUY or bUy - etc, do I need to
> make the data type
>
> type Menu_Options is (buy, Buy, bUY, etc
>
> or is there a way of converting user input to all lower case?
If you use Menu_Options'Value to convert a string to the corresponding
enumeration value, you don't have to care about case at all. Or am I
missing something?
next prev parent reply other threads:[~2000-05-11 0:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-11 0:00 Case Sensitivity Cameron McShane
2000-05-11 0:00 ` Florian Weimer [this message]
2000-05-11 0:00 ` Alfred Hilscher
2000-05-11 0:00 ` Ted Dennison
2000-05-11 0:00 ` Gautier
2000-05-12 0:00 ` John English
2000-05-12 0:00 ` David C. Hoos, Sr.
2000-05-15 0:00 ` John English
-- strict thread matches above, loose matches on Subject: below --
1993-07-04 9:12 case sensitivity Erik Magnuson
1993-07-02 15:53 Robert I. Eachus
1993-07-01 23:03 cis.ohio-state.edu!pacific.mps.ohio-state.edu!math.ohio-state.edu!darwin.
1989-02-20 19:45 pse_papay
1989-02-21 8:18 ` Bruce Anderson
1989-02-22 22:28 ` Steven D. Litvintchouk
1989-02-27 14:45 ` Dennis M. O'Connor
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox