+ RecNo should be -1 if the recordset is empty

git-svn-id: trunk@3415 -
This commit is contained in:
joost 2006-05-03 13:03:18 +00:00
parent 438981a689
commit 49b6e35862

View File

@ -633,9 +633,10 @@ Var SearchRecBuffer : PBufRecLinkItem;
begin
abuf := ActiveBuffer;
if assigned(abuf) then
// If abuf isn't assigned, the recordset probably isn't opened.
if assigned(abuf) and (FRecordCount>0) then
begin
GetBookmarkData(ActiveBuffer,@SearchRecBuffer);
GetBookmarkData(abuf,@SearchRecBuffer);
TmpRecBuffer := FFirstRecBuf;
recnr := 1;
while TmpRecBuffer <> SearchRecBuffer do