Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid Event overridden by mouse click?
Message
From
02/09/1998 15:22:10
 
 
To
02/09/1998 15:06:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00132491
Message ID:
00132507
Views:
15
Terry --

As Jim B. pointed out, rethink your interface.

Cetin Basoz posted a link to someone else with a similar problem a few days ago. Here it is: (Thanks Cetin):

"As Ken pointed out it's documented in BUG: Focus Changes Even Though Grid Text Box Valid Returns .F. with no workaround."


>I have a txtbox in a grid with the valid set to fire a messagebox and return 0 when a data condition is not met. It works fine unless you click on a control outside of the grid. Then the event fires properly but the clicked on control still gets focus after the messagebox leaving bad data in the txtbox. What do I need to do to prevent this?
>
>TIA
>Terry
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform