Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

TDBLookupComboBox "OnFocusLost" problem

edited May 2007 in End User
Hello,
I'm link a data source to my DBLookupComboBox by the databinding field.
On the DataSet of my DataSource, there is a OnDataChange method.

The problem is that when I select a value in my DBLookupComboBox, the
OnDataChange event is started two times:
* First time due to ImmediatePost property (= True). That's good
* Second time, when I click anywhere in my form. The DBLookupComboBox
lost the focus and there is an OnDataChange event.That's bad.

I try
* DataSet.FieldByName('itypetiers').OnChange := nil;
but that doesn't work.

Why is that second event started? How can I break it?

Thanks for all.



--- posted by geoForum on http://delphi.newswhat.com

Comments

This discussion has been closed.