mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 12:20:28 +02:00
fcl-db: sdfdataset: implement BookmarkValid; revealed by test TestBookmarkValid
git-svn-id: trunk@30505 -
This commit is contained in:
parent
8098612ffc
commit
9568f728f7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user