🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Why doesn't TADOTable DeleteRecords method work?

#1238
From: Gene
Date: Tue, 31 Aug 2004 19:45
15 lines
1251 bytes
Hi,

I have an application with simple operation with it trying to delete all records from an ADOTable by calling DeleteRecords method. 

An error message saying "Operation is not allowed in this context." The TADOTable I added is default. I use TADOTable connectionString to connect to a table directly (the connection test is fine). 

Here is the code I have:
  ADOTable1->Open();
  ADOTable1->DeleteRecords();
  ADOTable1->Close();

Any idea? TIA.

Gene.
Technical Details
Message-ID: <4134d569@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,57b84d3f4f52cba3,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Gene" <shenjige@yahoo.ca>
Sender: "Gene" <shenjige@yahoo.ca>
Reply-To: "Gene" <shenjige@yahoo.ca>
Subject: Why doesn't TADOTable DeleteRecords method work?
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 209.29.166.248     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4134d569@newsgroups.borland.com>
Date: 31 Aug 2004 12:45:45 -0700
X-Trace: newsgroups.borland.com 1093981545 207.105.83.66 (31 Aug 2004 12:45:45 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail