Subject | Re: [firebird-support] Re: Field computed by |
---|---|
Author | Ivan Cruz |
Post date | 2005-06-30T17:50:09Z |
Andrei Luis wrote:
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.
>Thanks Ivan, but I'm using T_IBQuery, how can I create a calculateAndrei,
>field on that?
>
>
>
>
>
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.