Subject Re: key or Onkey event
From Heinz Kesting <Nobody@Nowhere.com>
Date Sun, 24 Sep 2023 10:22:48 +0200
Newsgroups dbase.getting-started

Hi Mustansir,
>
>> I am using 2 events on a Combobox. OnChange event and OnKey event. The
>> Onchange event precedes OnKey event, It is possible to change firing
>> order ?
>>
As Ken has confirmed, there is no way to change the sequence in which
the event handlers are triggered.

Acually you say you're using the >onKey< event. What if you use the
>key< event in combinatin with >onChangeCommitted<?
In the >key< event handler you could trap the TAB key and perform your
code before >onChangeCommitted< gets fired?

Another idea is to cancel the >onChangeCommitted< event after you have
trapped the TAB key in the combobox, and re-set it when your action
following the the TAB key is done?

My two cents ...
Kind regards, Heinz