🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Delete problem

#3578
From: Ronald Loonstra
Date: Fri, 12 Jul 2002 17:46
54 lines
2174 bytes
Hi,

The error is not raised by the Delete() method but by Post().
Delete() doesn't need the record to be in editmode. What happening is that
after you have deleted the record successfully, you're trying to post the
record which has become active after the Delete().

So: ADODataSet->Delete(); alone is sufficient.
--
HTH

Ronald Loonstra
CodeFit Applications
www.codefit.nl

"G�khan �ATALKAYA" <gcatalkaya@ttnet.net.tr> schreef in bericht
news:3d2e9502_1@dnews...
> ADODataSet -> Edit();
>  ADODataSet -> Delete();
>  ADODataSet -> Post();
>
> G.�ATALKAYA
>
> "Leen" <Leen.VanHaecke@entropia.be>, haber iletisinde �unlar�
> yazd�:3d2d553e_2@dnews...
> > Hey,
> >
> > I would like to delete a record from an ADODataSet.
> > This is what I did:
> >
> > ADODataSet -> Delete();
> > ADODataSet -> Post();
> >
> > But I get the following error when running:
> > DataSet is not in edit or insert mode.
> >
> > What should I do to delete a record?
> >
> > Thanks in advance for your help!
> >
> > --
> > Mvg/With Regards
> > Leen Van Haecke
> > IT-engineer
> > Entropia Networks NV
> > Kanaalstraat 1A
> > B-8020 OOSTKAMP
> > Tel: +32 (0)50 39 39 00
> > Fax: +32 (0)50 39 38 37
> > Http://www.entropia.be
> >
> >
>
>
Technical Details
Message-ID: <3d2f14c8$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3d2d553e_2@dnews> <3d2e9502_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,ee865dc64e9a74e5
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-07-12 11:13:19 PST
From: "Ronald Loonstra" <r.loonstra@codefit.nl>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3d2d553e_2@dnews> <3d2e9502_1@dnews>
Subject: Re: Delete problem
Date: Fri, 12 Jul 2002 19:46:51 +0200
Lines: 56
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 217.121.245.5
Message-ID: <3d2f14c8$1_2@dnews>
X-Trace: dnews 1026495688 217.121.245.5 (12 Jul 2002 10:41:28 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews