Article View: borland.public.cppbuilder.database.ado
Article #4765Strange behaviour of TCustomADODataSet::RecNo
From: Jirzi
Date: Tue, 16 Oct 2001 21:21
Date: Tue, 16 Oct 2001 21:21
12 lines
1283 bytes
1283 bytes
Hi, I added calc field to TAdoQuery for displaying record number. The code for OnCalcFields event is ADOQueryPOSNpos_calc->Value = ADOQueryPOS->RecNo; ADOQueryPOSNpos_calc is the name of the calc field, ADOQueryPOS is the name of the query. Everthing works OK, records are properly numbered except the first one, which has number of -1 (minus one). Little strange, isn't it. Any ideas? Jirzi
Technical Details
Message-ID:
<3bcca3c9_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,5b908c36988d9443,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-10-16 14:33:11 PST From: "Jirzi" <norc@mailexcite.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Strange behaviour of TCustomADODataSet::RecNo Date: Tue, 16 Oct 2001 23:21:41 +0200 Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2479.0006 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 NNTP-Posting-Host: 213.250.5.52 Message-ID: <3bcca3c9_1@dnews> X-Trace: dnews 1003267017 213.250.5.52 (16 Oct 2001 14:16:57 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews