Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LostFocus vs. Valid in Comboboxes
Message
From
14/09/1999 10:50:26
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
LostFocus vs. Valid in Comboboxes
Miscellaneous
Thread ID:
00264458
Message ID:
00264458
Views:
73
I have a Combobox on a toolbar that is used to look up a name and jump to that account. It will refresh the active form based on the account selected. I had code in the Valid of the Combobox which did the refresh, but somewhere down the road I would inevitably encounter a SetFocus and would get the "Can't call SetFocus from a Valid" error. So I moved the code to the LostFocus of the Combobox. Now it seems that if the user drops down and chooses a name from the list, the LostFocus is not fired unless the user presses Enter. I believe that the Valid DID fire when the user made a selection (with a mouse)from the list. So, how can I get the LostFocus to occur when the user chooses something from the dropdown? How can I detect when they choose something from the dropdown? (VFP 6.0 SP3)

Thanks,
Elyse
Elyse Pomerantz
Next
Reply
Map
View

Click here to load this message in the networking platform