fcl-db: sdfdataset: implement BookmarkValid; revealed by test TestBookmarkValid

git-svn-id: trunk@30505 -
This commit is contained in:
lacak 2015-04-09 07:17:23 +00:00
parent 8098612ffc
commit 9568f728f7

View File

@ -208,6 +208,7 @@ type
write FDefaultRecordLength default 250;
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
function BookmarkValid(ABookmark: TBookmark): Boolean; override;
function GetFieldData(Field: TField; Buffer: Pointer): Boolean; override;
procedure RemoveBlankRecords; dynamic;
procedure RemoveExtraColumns; dynamic;
@ -772,6 +773,11 @@ begin
end
end;
function TFixedFormatDataSet.BookmarkValid(ABookmark: TBookmark): Boolean;
begin
Result := Assigned(ABookmark) and (FData.IndexOfObject(TObject(PPtrInt(ABookmark)^)) <> -1);
end;
procedure TFixedFormatDataSet.InternalGotoBookmark(ABookmark: Pointer);
var
Index: Integer;