Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When of checkbox fires after Click
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01472057
Message ID:
01472062
Views:
58
>Hi everybody,
>
>I made a test form and put a textbox and checkbox on it with this code in When event
>
>
>IF MESSAGEBOX('ok to click?',4,'test')=7
>  RETURN .f.
> endif
>
>and with messagebox ('Click') in click event.
>
>Now, the click will never happen even if I answer Yes on the question.


That is because you didn't have CLICK :-)
You have only MouseDown event and the MessageBox receives the MouseUp event. So no Click happened.
That is why I really try to avoid MessageBxo in WHEN or VALID events.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform