Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Firing the valid event when selecting from menu or toolb
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00322277
Message ID:
00322291
Views:
23
>Hi:
>
>Is there any way to preserve the valid event of a control when selecting from a menu or toolbar which doesn't recieve the focus when selected? I have a 'WriteBuffer' procedure that I use to confirm changes in these situations that will fire the valid event, but it is too late to get the focus back to the offending control. I usually don't use the Valid event, instead I validate data just before saving, but in this case I would like to use it.
>
>Thanx,
>Charlie

Try just setting the focus back to the control you came from in your toolbar code. This will force the control to run it's own valid.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform