BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TADOTable RecNo problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Xie Bingpeng
Guest





PostPosted: Mon Dec 08, 2003 12:02 pm    Post subject: TADOTable RecNo problem Reply with quote



hi all:
Delphi 7, Access2000 for test.

I found if ADOTable1.TableDirect =True and
ADOTable1.CursorLocation=clUseServer,
its RecNo is not correct sometimes. for example:

ADOTable1 has 66 records.following code show 1-60 RecNo correctly, But
when RecNo=60,ADOTable1.Next should make RecNo=61, but now it becames 9!

ADOTable1.First;
while not ADOTable1.eof do
begin
ShowMessage(IntToStr(ADOTable1.RecNo));
ADOTable1.Next;
end;

is this a ADO bug?


Back to top
baloonatic@hotmail.com
Guest





PostPosted: Tue Dec 09, 2003 6:59 pm    Post subject: Re: TADOTable RecNo problem Reply with quote



Personally I'd engineer out the use of recno, you can't count on it
being correct with any server side DBMS. If you have to 'remember' a
record use bookmarks.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.