mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 19:49:09 +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];
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user