Subject about creating run-time fields
Author Justas Janauskas
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