Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MESSAGEBOX() Enter also applied to underlying modal dialog
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
MESSAGEBOX() Enter also applied to underlying modal dialog
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01177881
Message ID:
01177881
Views:
53
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
___________________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform