mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 10:41:15 +02:00
* Patch from Petr Kristan to fix TDataSet.SetFieldDefs
git-svn-id: trunk@10615 -
This commit is contained in:
parent
d699e37790
commit
dd348c8093
@ -824,6 +824,12 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
Procedure TDataSet.SetFieldDefs(AFieldDefs: TFieldDefs);
|
||||
|
||||
begin
|
||||
FFieldDefs.Assign(AFieldDefs);
|
||||
end;
|
||||
|
||||
procedure TDataSet.InitFieldDefsFromfields;
|
||||
var i : integer;
|
||||
begin
|
||||
|
@ -1130,6 +1130,7 @@ type
|
||||
Function GetActive : boolean;
|
||||
Procedure UnRegisterDataSource(ADatasource : TDatasource);
|
||||
Procedure UpdateFieldDefs;
|
||||
Procedure SetFieldDefs(AFieldDefs: TFieldDefs);
|
||||
protected
|
||||
procedure RecalcBufListSize;
|
||||
procedure ActivateBuffers; virtual;
|
||||
@ -1312,7 +1313,7 @@ type
|
||||
property DefaultFields: Boolean read FDefaultFields;
|
||||
property EOF: Boolean read FEOF;
|
||||
property FieldCount: Longint read GetFieldCount;
|
||||
property FieldDefs: TFieldDefs read FFieldDefs write FFieldDefs;
|
||||
property FieldDefs: TFieldDefs read FFieldDefs write SetFieldDefs;
|
||||
// property Fields[Index: Longint]: TField read GetField write SetField;
|
||||
property Found: Boolean read FFound;
|
||||
property Modified: Boolean read FModified write SetModified;
|
||||
|
Loading…
Reference in New Issue
Block a user