Subject Re: [IBO] about creating run-time fields
Author Jason Wharton
If you send me a working sample of this problem I will take a look at it.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Justas Janauskas" <pentagon@...>
To: <IBObjects@yahoogroups.com>
Sent: Thursday, April 19, 2001 10:30 AM
Subject: [IBO] about creating run-time fields


> 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