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.