* Correct use of FieldDefs factory

git-svn-id: trunk@26778 -
This commit is contained in:
michael 2014-02-15 10:27:17 +00:00
parent 53ba347851
commit feed8adfa6

View File

@ -157,7 +157,7 @@ begin
AFieldNode := item[i];
if AFieldNode.CompareName('FIELD')=0 then
begin
AFieldDef := TFieldDef.Create(DataSet.FieldDefs);
AFieldDef := Dataset.FieldDefs.AddFieldDef;
AFieldDef.DisplayName:=GetNodeAttribute(AFieldNode,'fieldname');
AFieldDef.Name:=GetNodeAttribute(AFieldNode,'attrname');
AFieldDef.Size:=StrToIntDef(GetNodeAttribute(AFieldNode,'width'),0);