mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 18:25:58 +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
|
begin
|
||||||
abuf := ActiveBuffer;
|
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
|
begin
|
||||||
GetBookmarkData(ActiveBuffer,@SearchRecBuffer);
|
GetBookmarkData(abuf,@SearchRecBuffer);
|
||||||
TmpRecBuffer := FFirstRecBuf;
|
TmpRecBuffer := FFirstRecBuf;
|
||||||
recnr := 1;
|
recnr := 1;
|
||||||
while TmpRecBuffer <> SearchRecBuffer do
|
while TmpRecBuffer <> SearchRecBuffer do
|
||||||
|
Loading…
Reference in New Issue
Block a user