Subject Re[2]: [IBO] Recursive call of TIB_LookupCombo.OnChange
Author Gabriel Juncu
Thursday, March 28, 2002, 2:54:39 PM, Pirtea wrote:

> Try using an invisible tib_edit and assign onchange to it.
> Or you could check if the value(s) you want to assign are not already
> assigned and don't
> assign twice (this way you will stop recursion).

> If you go for the first choice remeber to set tabstop to false or the user
> will eventualy
> step into the invisible tib_edit.

Hi Calin!

The first solution works, but in this case I'm a surprised that it doesn't
work directly from Lookup's OnChange event. May be a TIB_Lookup bug?
As for the second solution, more than comparing the values, I have tried to
use a reentrancy flag in OnChange event, but id doesn't work. It seems that
some internal IBO or Delphi procedures are disturbed by the recursive call.

Thank you for your help!

Gabriel Juncu