Subject | Re: Field computed by |
---|---|
Author | Andrei Luis |
Post date | 2005-06-30T18:04:43Z |
Hi Ivan,
When I worked with Paradox and tTable and tQuery, I use this
calculated field, in field editor. But the t_IBQuery doesn't have a
field editor! :(
Thanks for your help.
Andrei
When I worked with Paradox and tTable and tQuery, I use this
calculated field, in field editor. But the t_IBQuery doesn't have a
field editor! :(
Thanks for your help.
Andrei
--- In firebird-support@yahoogroups.com, Ivan Cruz <ivan@a...> wrote:
> Andrei Luis wrote:
>
> >Thanks Ivan, but I'm using T_IBQuery, how can I create a calculate
> >field on that?
> >
> >
> Andrei,
>
> I'm not a IBO user, I use the standard IBX components, bundled with
> Delphi 6 and 7. The table and query components on that package
> have a special "fields editor" you can access by right-clicking the
> component. Inside the editor, fields can be added/updated/deleted.
> Please note: these are your application fields, not Firebird fields.
> When adding a field, you can change its dafault type from "data" to
> "calculated". IBO must not be very different.
>
> After creating your calc field, your OnCalcFields handler will need
> a line like that;
>
> MyQueryTotal.Value := MyQueryQuantity.Value *
MyQueryUnit_Price.Value;
>
>
> Ivan.