Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Button click after textbox valid doesn't fire?
Message
From
04/12/2005 21:31:08
 
 
To
03/12/2005 03:36:48
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01074348
Message ID:
01074810
Views:
22
I agree. I'm not a fan of NODEFAULT in LostFocus(). What I'm going to do is to let the valid run it's normal way and in the LostFocus, I'll put the messagebox and I'll set a form property. I'll have to reset the property in the gotfocus() of all the other controls, but it will work.

>>Unfortunately, I'd really like to stay away from the Wait Window for this particular thing and use a messagebox instead.
>>
>>It looks like Dorin's method is the best way for me.
>>
>
>Mine is an explanation not a solution.
>
>Valid is not remarkable.
>1. I recommend you to avoid to use NODEFAULT in LOSTFOCUS ( IT IS WRONG )
>
>better:
>
>* txt valid
>RETURN thisform.chkTxtBox()
>
>
>but:
>
>* command gotfocus
>if thisform.txtOk  && coming from the textbox
>  keyboard '{enter}' PLAIN
>endif
>thisform.txtOk = .F.  && reset coming from the textbox
>
>destroy keyboard tab moving.
Previous
Reply
Map
View

Click here to load this message in the networking platform