Article View: borland.public.cppbuilder.database.ado
Article #2788ADO Exception
From: Sky
Date: Mon, 17 Mar 2003 08:16
Date: Mon, 17 Mar 2003 08:16
15 lines
1690 bytes
1690 bytes
I am using ADO to operate database, TADOConnection/TADOQuery/TDataSource/TDBEdit has been used, if I set the AutoEdit property of TDataSource true, I can use it normally, the data in TDBEdit can save automatically. But if i set AutoEdit property false(I want save record manually till all data input completely), But It always raise exception class EDatabaseError when i modify the data and change the focus of active control, it show "DataSet not in edit or insert mode, I try to use the OnDatachange and OnUpdataData event of TDataSource or the OnEditError and BeforeEdit event of TADOQuery to verify this, But it always throw this exception first before these event had been triggered. Sky
Technical Details
Message-ID:
<3e758449@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,e766e18548493c07,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-03-17 00:39:00 PST Reply-To: "Sky" <akeehuang@163.net> From: "Sky" <akeehuang@163.net> Newsgroups: borland.public.cppbuilder.database.ado Subject: ADO Exception Date: Mon, 17 Mar 2003 16:16:08 +0800 Lines: 18 Organization: CK X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 210.14.178.250 Message-ID: <3e758449@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1047888969 210.14.178.250 (17 Mar 2003 00:16:09 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail