Subject | about creating run-time fields |
---|---|
Author | Justas Janauskas |
Post date | 2001-04-19T17:30:15Z |
hi,
i have one litle problem. i want to create calculated fields dynamically
(during run time). but how it can be done? i tried following source, but
then my app brokes every time i exit from it.
// q -- TIBOQuery
var
f: TStringField;
begin
f := TStringField.Create(nil);
f.FieldName := 'NAME';
f.Size := 60;
f.FieldKind := fkCalculated;
f.DataSet := q;
q.Fields.Add(f);
q.open;
q.close;
end
--
Thanks,
Justas
i have one litle problem. i want to create calculated fields dynamically
(during run time). but how it can be done? i tried following source, but
then my app brokes every time i exit from it.
// q -- TIBOQuery
var
f: TStringField;
begin
f := TStringField.Create(nil);
f.FieldName := 'NAME';
f.Size := 60;
f.FieldKind := fkCalculated;
f.DataSet := q;
q.Fields.Add(f);
q.open;
q.close;
end
--
Thanks,
Justas