Actually you can Setfocus() from a LostFocus, but you have to include NODEFAULT in the LostFocus so the default behavior is overridden. :-)
Bill
>Hello Scott
>
>well I can tell you that you can not do a setfocus from a lostfocus
>
>maybe thats it?
>
>
>>I am having a problem that I just can't figure out. I am going through my code with the debugger (VFP6.0) and for some reason, this one textbox goes through its Valid code and then goes to the LostFocus code and then goes back to the Valid code again. I feel like an idiot, but I can't see why it would be doing that. In the LostFocus of the txt, I am trying to set focus to another textbox, but it just goes to its own valid instead. Anyways, if anyone can think of a few places that I could look, it would be greatly appreciated.
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.