mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 08:49:25 +02:00
* Correct use of FieldDefs factory
git-svn-id: trunk@26778 -
This commit is contained in:
parent
53ba347851
commit
feed8adfa6
@ -157,7 +157,7 @@ begin
|
|||||||
AFieldNode := item[i];
|
AFieldNode := item[i];
|
||||||
if AFieldNode.CompareName('FIELD')=0 then
|
if AFieldNode.CompareName('FIELD')=0 then
|
||||||
begin
|
begin
|
||||||
AFieldDef := TFieldDef.Create(DataSet.FieldDefs);
|
AFieldDef := Dataset.FieldDefs.AddFieldDef;
|
||||||
AFieldDef.DisplayName:=GetNodeAttribute(AFieldNode,'fieldname');
|
AFieldDef.DisplayName:=GetNodeAttribute(AFieldNode,'fieldname');
|
||||||
AFieldDef.Name:=GetNodeAttribute(AFieldNode,'attrname');
|
AFieldDef.Name:=GetNodeAttribute(AFieldNode,'attrname');
|
||||||
AFieldDef.Size:=StrToIntDef(GetNodeAttribute(AFieldNode,'width'),0);
|
AFieldDef.Size:=StrToIntDef(GetNodeAttribute(AFieldNode,'width'),0);
|
||||||
|
Loading…
Reference in New Issue
Block a user