Article View: borland.public.jbuilder.database
Article #233Fun never ends, nature of the beast
From: Mehmet F. Erten
Date: Wed, 09 Aug 2006 19:45
Date: Wed, 09 Aug 2006 19:45
19 lines
1707 bytes
1707 bytes
In the same program I use the same table as a work table more than once
(a few times) only this one fails for a reason.
Even after the cancel() and close() it keeps the rows in it.
No clue.
So I rely on the old fashioned way: deleteAllRows() if getRowCount()
first cycle false, true, 0
but the second cycle should be true, false, 0 but it is as follows:
System.out.println(dataSet.isOpen()); ===> true
if (dataSet.isOpen())
{
dataSet.cancel();
dataSet.close();
}
System.out.println(dataSet.isOpen()); ====> false
dataSet.open();
System.out.println(dataSet.getRowCount()); ====> 2
Technical Details
Message-ID:
<44da3b7a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44d8da2b$1@newsgroups.borland.com> <44da23d6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,1edbdc0ef701870a X-Google-Attributes: gid1073da,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Mehmet F. Erten" <mehmet_erten@mblsoft.com> From: "Mehmet F. Erten" <mehmet_erten@mblsoft.com> Newsgroups: borland.public.jbuilder.database References: <44d8da2b$1@newsgroups.borland.com> <44da23d6$1@newsgroups.borland.com> Subject: Fun never ends, nature of the beast Date: Wed, 9 Aug 2006 15:45:50 -0400 Lines: 21 Organization: MBL Systems, Inc X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 NNTP-Posting-Host: 71.250.239.59 Message-ID: <44da3b7a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1155152762 71.250.239.59 (9 Aug 2006 12:46:02 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail