Article View: borland.public.cppbuilder.database.ado
Article #4194Re: Locate method of TADOQuery
From: BM
Date: Mon, 18 Mar 2002 11:22
Date: Mon, 18 Mar 2002 11:22
28 lines
1770 bytes
1770 bytes
Presumably at the end of the day its performing some SQL in the background similar to... i.e WHERE MYFIELD LIKE 'ADO%' the % after the "ADO" means it will match anything starting with "ADO" Use the following SQL instead - of the form WHERE MYFIELD LIKE '%ADO%' then it will match anything with "ADO" anywhere in the text. "Formentz" <francesco@leotron.com> wrote in message news:3c95c71a$1_1@dnews... > Hi all, > in the locate method of TADOQuery you can specify in the TLocateOptions the > flag loPartialKey, but the partial key is not as I expected. > If I have a string like "use ADO instead of ODBC", if I Locate "ADO" it > doesn't find the record, it finds the record if I search "use ADO". > > Is there a method to search the way I need? or a workaround? or a change to > the original Locate function to use it in a derived component? > > TIA > > Ciao > Formentz > >
Technical Details
Message-ID:
<3c95ce7c_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!iad-peer.news.verio.net!news.verio.net!fu-berlin.de!news.boerde.de!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!dnewsReferences:
<3c95c71a$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,73110aeff53c8dd7 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-03-18 03:26:21 PST From: "BM" <m02x7z00@cwcom.net> Newsgroups: borland.public.cppbuilder.database.ado References: <3c95c71a$1_1@dnews> Subject: Re: Locate method of TADOQuery Date: Mon, 18 Mar 2002 11:22:59 -0000 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 62.253.93.63 Message-ID: <3c95ce7c_2@dnews> X-Trace: dnews 1016450684 62.253.93.63 (18 Mar 2002 03:24:44 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!iad-peer.news.verio.net!news.verio.net!fu-berlin.de!news.boerde.de!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!dnews