🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Quick Question: BDE SetKey and Goto Key = ??? With ADO

#1675
From: EDW
Date: Thu, 25 Mar 2004 17:26
29 lines
2048 bytes
I'm converting an application that used the BDE with access to use ADO 
with access. I'm having a bit of difficulty when it comes to recognizing 
the methods with ADO that correspond to the methods used in BDE.

I'm using a TADOconnection with TADOTables set to table direct.

I use BDE Set Key() and  GotoKey() to extract data from linked tables. I 
would assume there is a similiar method with ADO but I'm not sure which 
they are. All I want to do there is set the current record and goto it.

Also, for some reason, when I loop thru records it seems to go very very 
slow compared to the BDE version. Perhaps I'm not using the right methods.

    if(datamod->Table1->FindFirst())
    {
       do
       {
          Application->ProcessMessages();


          datamod->Table1->FieldValues["T_FIELD"]   = 0;
          //...

       }while(datamod->Table1->FindNext());
     }

I don't have much experience with ADO (This is my first app really) if 
anyone has any insight or can point me to a good resource to learn more 
about the ADO basics I'd be grateful.
Technical Details
Message-ID: <40631630$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,d991247d18e9434d,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-03-25 09:40:20 PST
Date: Thu, 25 Mar 2004 12:26:08 -0500
From: EDW <aegis45@hotmail.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Quick Question: BDE SetKey and Goto Key = ??? With ADO
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68.168.131.18
Message-ID: <40631630$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080235568 68.168.131.18 (25 Mar 2004 09:26:08 -0800)
Lines: 31
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail