You've already forked lazarus-ccr
TParadoxDataset: Add property PrimaryKeyFieldCount.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7101 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -170,6 +170,7 @@ type
|
|||||||
FParser: TBufDatasetParser;
|
FParser: TBufDatasetParser;
|
||||||
function GetEncrypted: Boolean;
|
function GetEncrypted: Boolean;
|
||||||
function GetInputEncoding: String; inline;
|
function GetInputEncoding: String; inline;
|
||||||
|
function GetPrimaryKeyFieldCount: Integer;
|
||||||
function GetTargetEncoding: String; inline;
|
function GetTargetEncoding: String; inline;
|
||||||
function GetVersion: String;
|
function GetVersion: String;
|
||||||
function IsStoredTargetEncoding: Boolean;
|
function IsStoredTargetEncoding: Boolean;
|
||||||
@ -216,6 +217,7 @@ type
|
|||||||
function GetFieldData(Field: TField; Buffer: Pointer): Boolean; override;
|
function GetFieldData(Field: TField; Buffer: Pointer): Boolean; override;
|
||||||
procedure SetFieldData({%H-}Field: TField; {%H-}Buffer: Pointer); override;
|
procedure SetFieldData({%H-}Field: TField; {%H-}Buffer: Pointer); override;
|
||||||
property Encrypted: Boolean read GetEncrypted;
|
property Encrypted: Boolean read GetEncrypted;
|
||||||
|
property PrimaryKeyFieldCount: Integer read GetPrimaryKeyFieldCount;
|
||||||
published
|
published
|
||||||
property TableName: TFileName read FFileName write SetFileName;
|
property TableName: TFileName read FFileName write SetFileName;
|
||||||
property TableLevel: String read GetVersion;
|
property TableLevel: String read GetVersion;
|
||||||
@ -484,6 +486,14 @@ begin
|
|||||||
Result := FInputEncoding;
|
Result := FInputEncoding;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TParadoxDataset.GetPrimaryKeyFieldCount: Integer;
|
||||||
|
begin
|
||||||
|
if FHeader <> nil then
|
||||||
|
Result := FHeader^.primaryKeyFields
|
||||||
|
else
|
||||||
|
Result := 0;
|
||||||
|
end;
|
||||||
|
|
||||||
function TParadoxDataset.GetRecNo: Integer;
|
function TParadoxDataset.GetRecNo: Integer;
|
||||||
begin
|
begin
|
||||||
Result := -1;
|
Result := -1;
|
||||||
|
Reference in New Issue
Block a user