🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #475

Re: ADO Table -> Tempermental Locate Staement -- Any clues?

#475
From: Caleb
Date: Fri, 19 May 2006 04:10
13 lines
1365 bytes
On Thu, 18 May 2006 23:35:45 -0400, Caleb <nospam@nospam.net> wrote:
I've verified that the record should be found.
>
>Any ideas as to why it might not work?  


FWIW I found the locate rec problem solved when trimming the leading
and trailing spaces of the lookup field.

   lookupAnsiString = lookupAnsiString.Trim();
   Locate(FieldName, lookupAnsiString, Opts)

I don't understand why partial lookup option did not find a rec.  
Technical Details
Message-ID: <mvgq62d2d9noc177eehttlg64ecu6n4of3@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <cqeq62tasqb2viq7oj81ovvpmtljbc07ik@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,d674326d20ed910
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Caleb <nospam@nospam.net>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: ADO Table -> Tempermental Locate Staement  -- Any clues?
Date: Fri, 19 May 2006 00:10:36 -0400
Reply-To: nospam@nospam.net
Message-ID: <mvgq62d2d9noc177eehttlg64ecu6n4of3@4ax.com>
References: <cqeq62tasqb2viq7oj81ovvpmtljbc07ik@4ax.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 71.99.9.44
X-Trace: newsgroups.borland.com 1148011815 71.99.9.44 (18 May 2006 21:10:15 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail