🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Whats wrong with this picture ?

#3771
From: Uros Obradovic
Date: Thu, 20 Jun 2002 21:35
22 lines
1621 bytes
PersonSet->Open();
PersonSet->Edit();
PersonSet->Append();

PersonTable->Open();
PersonTable->Append();
PersonTable->FieldByName("Owner")->AsInteger = Owner->Text;
...

PersonTable->Post();
PersonTable->UpdateRecord();

After I click on the button and this code starts with execution, an error
pops up
-> Dataset is not in Insert or Edit mode

btw. this is the code for creating a new record. When I go back to the
table, I can see that the new record has been created, but right after the
error window pops up. what should I do ????

Thanks
Uros
Technical Details
Message-ID: <3d124aad$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!yellow.newsread.com!news-toy.newsread.com!news-xfer.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!news-out.spamkiller.net!propagator2-maxim!propagator-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,559fa8662853ac92,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-06-20 14:43:08 PST
Reply-To: "Uros Obradovic" <ouros@hotmail.com>
From: "Uros Obradovic" <ouros@hotmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Whats wrong with this picture ?
Date: Thu, 20 Jun 2002 14:35:35 -0700
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 134.71.141.37
Message-ID: <3d124aad$1_2@dnews>
X-Trace: dnews 1024608941 134.71.141.37 (20 Jun 2002 14:35:41 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!yellow.newsread.com!news-toy.newsread.com!news-xfer.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!news-out.spamkiller.net!propagator2-maxim!propagator-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews