mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 05:00:07 +02:00
+ RecNo should be -1 if the recordset is empty
git-svn-id: trunk@3415 -
This commit is contained in:
parent
438981a689
commit
49b6e35862
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user