>I have some textboxes, that do some search in Lostfocus... If can´t found a code, for example, I display a message, but control returns to Text1... How can I return the control to the textbox that cause the error? I mean, can I set the Focus to an especific object (Which is previously identified via var)?
>
>Thanks in Advance!
You can conditionally SetFocus() to any other object from the LostFocus() event.
Just put something like
IF [mycondition]
thisform.somecontrol.SetFocus()
ENDIF
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison