Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid event firing in ComboBox when drop down not displa
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00703082
Message ID:
00703260
Views:
17
Hi!

There is a DropDown event. Set there some flag variable or property to .T. to indicate that drop-down list was open. In the Valid event add a code:
if {flag} then
... run code for case drop down list was open and something selected
  {flag} = .F.
else
... run code for case something typed in or interactive search is done
endif
You probably want also to handle a case when control loses focus (LostFocus event).

>I’d like to stop the Valid event from firing while typing into a combobox and IncrementalSearch = .T.. In other words: the valid event is firing every time a key is pressed when the drop down list has not been displayed. This is not happening when the drop down list has been activated (dropped down).
>
>What am I missing?
>
>Thanks in advance for any hints.
>
>Oscar Corte
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform