🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Deleting a whole recordset

#1168
From: Michele Santucci
Date: Sat, 16 Oct 2004 13:10
18 lines
1511 bytes
I have a form showing up a table content by data-aware components connected
to a dataset I have to empty the underlying table and so I tought tou use
DeleteRecords method.. but If I try I got an exception of this kind:

Project Environment.exe raised exception class EDatabaseError with message
'Operation not permitted in the current context'. Process stopped. Use Step
or Run to continue.

The 'faulty' code is that:

        dmEnvironmentData->adodsEnvironment->DisableControls();
        dmEnvironmentData->adodsEnvironment->DeleteRecords();
        dmEnvironmentData->adodsEnvironment->EnableControls();


-- 

   bye by(t)e[z]....TuX!
Technical Details
Message-ID: <41711cac@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,92d5af6035d603fd,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Michele Santucci" <michele.santucci@celinavio.it>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Deleting a whole recordset
Date: Sat, 16 Oct 2004 15:10:32 +0200
Lines: 20
Organization: Celin Avio S.r.l.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 62.11.90.26
Message-ID: <41711cac@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097931948 62.11.90.26 (16 Oct 2004 06:05:48 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail