🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: problem with properly deleting a record using ado

#1846
From: ryan
Date: Fri, 23 Jan 2004 02:07
27 lines
2320 bytes
thedeak@ntslink.net (ryan) wrote in message news:<2fa56e32.0401160827.647e1449@posting.google.com>...
> i cant seem to perform a query & tell my clientdataset what to delete,
> then update the actual adodataset.  i have problems, so i have to
> activate my clientdataset after the query for my adodataset (so the
> right query is stored) then tell it what to delete & update, then
> close my clientdataset again.  this is a pain & i'd like to know the
> correct way.  this method currently requires i have my forms point to
> my ado dataset instead of my client datasets..i know this is wrong,
> but cant figure it out.
> 
> 
> DataModule3->ClientDataSet4->Active = true;
>                 DataModule3->ClientDataSet4->Edit();
>                 if(DataModule3->ClientDataSet4->State == dsEdit)
>                 {
>                         DataModule3->ClientDataSet4->Delete();
>                         DataModule3->ClientDataSet4->ApplyUpdates(-1);
>                         Application->MessageBox("Record
> deleted.","Status", MB_OK);
>                         DataModule3->ADOCommand1->CommandText =
> "SELECT LoginName, UserRightsLevel FROM AUTHTABLE";
>                         DataModule3->ADODataSet2->Recordset =
> DataModule3->ADOCommand1->Execute();
>                 };
>                 DataModule3->ClientDataSet4->Active = false;

i know someone has to have the answer out there....
Technical Details
Message-ID: <4dd8a205.0401221807.5a9c6708@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <2fa56e32.0401160827.647e1449@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,79a4321d4a9d96e2
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-01-22 18:07:30 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: rsmothers@ntslink.net (ryan)
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: problem with properly deleting a record using ado
Date: 22 Jan 2004 18:07:29 -0800
Organization: http://groups.google.com
Lines: 27
Message-ID: <4dd8a205.0401221807.5a9c6708@posting.google.com>
References: <2fa56e32.0401160827.647e1449@posting.google.com>
NNTP-Posting-Host: 216.124.224.222
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1074823649 25400 127.0.0.1 (23 Jan 2004 02:07:29 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 23 Jan 2004 02:07:29 +0000 (UTC)