* Patch from Petr Kristan to fix TDataSet.SetFieldDefs

git-svn-id: trunk@10615 -
This commit is contained in:
joost 2008-04-08 17:04:12 +00:00
parent d699e37790
commit dd348c8093
2 changed files with 8 additions and 1 deletions

View File

@ -824,6 +824,12 @@ begin
end;
end;
Procedure TDataSet.SetFieldDefs(AFieldDefs: TFieldDefs);
begin
FFieldDefs.Assign(AFieldDefs);
end;
procedure TDataSet.InitFieldDefsFromfields;
var i : integer;
begin

View File

@ -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;