Article View: comp.lang.pascal.delphi.misc
Article #91Re: Problem with partial search. Please help me!!!!
From: William Wester
Date: Fri, 24 Jul 1998 00:00
Date: Fri, 24 Jul 1998 00:00
36 lines
1763 bytes
1763 bytes
I've done partial searches a lot using DBF files with no trouble.
See notes below.
bill wester
On Tue, 21 Jul 1998 17:24:46 +0200, Gabriele Cardinali
<febeaweb@febea.it> wrote:
>Please, help me!!!!
>I have a DBF table with some fields. I have created an expression index
>in this way:
> myTable.AddIndex('myIndex','Field1+Field2+dtos(Field3)',[ixExpression,
>ixDescending])
>
>I have to do a partial search on Field1 and Field2.
>So I do the following:
>
> myTable.IndexKey:='myIndex';
> myTable.SetKey;
cut{> myTable.KeyfieldCount:=1; { to use Field1 and Field2 }}
> myTable.FieldByName('Field1').AsString:='aaaaaa';
> myTable.FieldByName('Field2').AsString:='bbbbb';
cut{> myTable.GotoKey;}
myTable.GoToNearest; --> always works for me.
I have never used KeyfieldCount
>
>but this source doesn't work. I have tried also with GotoNearest.
>Partial search doesn't work with expression indexes???
>Please, tell me not!!!!!!!!!!
>Please help me and, however, thanks for your interesting.
>Thanks once again.
>
Technical Details
Message-ID:
<35b8ebbb.205382464@internet.census.gov>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35B4B2BD.C56ADA46@febea.it>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff75c,8c8e8a36b517982f X-Google-Attributes: gidff75c,public X-Google-Thread: f6386,8c8e8a36b517982f X-Google-Attributes: gidf6386,public X-Google-Thread: 10baee,8c8e8a36b517982f X-Google-Attributes: gid10baee,public From: William.C.Wester@ccMail.Census.Gov (William Wester) Subject: Re: Problem with partial search. Please help me!!!! Date: 1998/07/24 Message-ID: <35b8ebbb.205382464@internet.census.gov> X-Deja-AN: 374620670 References: <35B4B2BD.C56ADA46@febea.it> Organization: Census Bureau Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.database.multi-tier,borland.public.delphi.database.desktop