Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus Method for Control Not executing
Message
From
16/03/1998 14:29:16
 
 
To
16/03/1998 13:37:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00084832
Message ID:
00084885
Views:
34
Thank you for your input. It was a combination of NODefault and DODefault after the setfocus which solved the problem in my LostFocus Method.

IF pnreturn # 0 && Password Verfication failed, users was another try
This.SetFocus
NoDefault
ELSE && Password Verfied, move on to weekending date
DoDefault()
RETURN

***************

Thanx again.

Fred Lauckner
<>

BTW. I was using the LostFocus Method because my validation routine calls a custom form like messagebox (but with a Timeout). In the INIT of the custom messagebox, I issue a conditional setfocus command. This throughs an error because VFP doesn't allow SetFocus from When, Valid, RangeHigh or RangeLow event.
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform