Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LostFocus vs. Valid in Comboboxes
Message
De
14/09/1999 10:50:26
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
LostFocus vs. Valid in Comboboxes
Divers
Thread ID:
00264458
Message ID:
00264458
Vues:
71
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform