Subject | Problem with event OnChange -> IB_LookupCombo |
---|---|
Author | Andrei Luís |
Post date | 2005-06-30T14:29:05Z |
I'm trying to use this code on OnChange event of IB_LookupCombo:
dm.qrSalesItems.FieldByName('Price').AsCurrency :=
dmLookup.qrProductSales.FieldByName('Sale_Price').asCurrency;
This IB_LookupCombo points to dmLookup.qrProductSales.
The problem is: when I'm insert data in dm.qrSalesItems, and click
IB_LookupCombo, the record are shown, but, I can't choose any!
If I put the code on OnExit event of the same IB_LookupCombo, I can
choose normally a product.
Can't I use that code on OnChange event?
Thanks,
Andrei
Using Delphi 4 + FB 1.5.2 + IBO 4.3
dm.qrSalesItems.FieldByName('Price').AsCurrency :=
dmLookup.qrProductSales.FieldByName('Sale_Price').asCurrency;
This IB_LookupCombo points to dmLookup.qrProductSales.
The problem is: when I'm insert data in dm.qrSalesItems, and click
IB_LookupCombo, the record are shown, but, I can't choose any!
If I put the code on OnExit event of the same IB_LookupCombo, I can
choose normally a product.
Can't I use that code on OnChange event?
Thanks,
Andrei
Using Delphi 4 + FB 1.5.2 + IBO 4.3