Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid And LostFocus - Help
Message
From
26/04/2011 18:59:05
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01508436
Message ID:
01508450
Views:
57
>On a textbox, I have some code in the valid event. Does the valid event not fire if the user clicks into another control? It always fires when I tab out or fill the control to the max number of characters, but it doesn't seem to fire if I click to another control on the form.
>
>Is there an event linkage between Lostfocus and Valid, like they one fires then the other or are they really two totally separate events?

According to the help, and confirmed in HackFox 3, for a text box the valid event always fires before a control loses the focus. Lostfocus fires when the control loses the focus.

Maybe your Valid code is returning .T. unexpectedly. Have you traced in the debugger?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform