Article View: comp.sys.mac.databases
Article #159Re: foxbase/mac
From: Eric Weidl
Date: Mon, 13 Apr 1992 14:01
Date: Mon, 13 Apr 1992 14:01
43 lines
2332 bytes
2332 bytes
In article <bob.703022897@vincent1.iastate.edu> bob@iastate.edu (Robert P Kuehne) writes:
>Hi there. I'm a novice Foxbase/Mac user. I like it, but the program is
>more complext than I imagined. Still...have a simple problem: it seems
>that field entries are case sensitive, so that searching requires
>knowlege of case. Is there a way to de-case-sensitize a search, so that
>whether I spell with upper or lower, the search will find the
>appropriate items. If you know how to do this, please adivse. I can't
>find the right switch.
Sorry, Bob, there is no 'switch' which you can set to turn case-sensitivity on
or off. No, you have to do everything manually. You need to use the UPPER()
or LOWER() functions to force the strings to either case and then search on
them. For example:
Your database has a field 'foo' containing the text 'Bar'. The expression
LOCATE FOR foo = 'bar'
will not find the record. Instead you could use this expression:
LOCATE FOR UPPER(foo) = 'BAR'
or, if you have created a dialog box in an application, and storing the text
to search on in the variable textToFind, use this:
LOCATE FOR UPPER(FOO) = UPPER(textToFind)
That way the user won't have to remember to type stuff in upper/lower case.
>Thanks again.
>--
> -----------------------------------------------------------------------------
>| |) | "Oh, it's _you_, Bob!" Robert P. Kuehne |
>| |)()|) - That Commmercial bob@iastate.edu |
> -----------------------------------------------------------------------------
Eric
--
===================================================================
Eric Weidl e-weidl@uchicago.edu
University of Chicago -- Academic and Public Computing
===================================================================
Technical Details
Message-ID:
<1992Apr13.140116.16963@midway.uchicago.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!mips!darwin.sura.net!convex!linac!uchinews!kimbark!ejw1References:
<bob.703022897@vincent1.iastate.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.mac.databases Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!mips!darwin.sura.net!convex!linac!uchinews!kimbark!ejw1 From: ejw1@kimbark.uchicago.edu (Eric Weidl) Subject: Re: foxbase/mac Message-ID: <1992Apr13.140116.16963@midway.uchicago.edu> Sender: news@uchinews.uchicago.edu (News System) Reply-To: ejw1@midway.uchicago.edu Organization: Academic and Public Computing References: <bob.703022897@vincent1.iastate.edu> Date: Mon, 13 Apr 1992 14:01:16 GMT Lines: 43