>Hello people,
>
>I have to put "ThisForm.Button1.SetFocus" in a Valid like this:
>
>... Code Part A ...
>ThisForm.Button1.SetFocus
>... Code Part B ...
>
>But it's generate a error message...
>
>Anyone could me help?...
>
>I'm using VFP 5.0!
>
>Regards,
>
>Rodolfo Duarte
>Brazil
Rodolfo,
Move your valid code to lostfocus :
if llCannotLeave
nodefault
else
ThisForm.Button1.SetFocus
endif
Cetin