Subject Re: [firebird-support] Re: Field computed by
Author Ivan Cruz
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.