Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MESSAGEBOX() Enter also applied to underlying modal dialog
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
MESSAGEBOX() Enter also applied to underlying modal dialog
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01177881
Message ID:
01177881
Vues:
54
Hi all

I have a modal form class which get the From-To dates from the user. I have put logic in the VALID() (also tried LOSTFOCUS()) that checks of the To date is not more than 50 days from the From date. In such a case I raise a MESSAGEBOX() stating the To date has been reset to max +50 days to please recheck the dates, then I do a THIS.SETFOCUS()

Now when the MSGBOX is activated and if I press Enter to okay the MSGBOX, then Enter is passed onto my modal form and the default button Ok is also pressed. I have tried to use CLEAR TYPEAHEAD after the MSGBOX but no luck.

Please advise on what is happening.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform