>>I would suggest that you run the code in question in VFP debugger with event tracking turned on to see what's going on.
>>
>>< SNIP >
>That was the fisrt thing I tried and can not see what the problem is, I am going to call the Label for the object I want to set focus to by using the KEYBOARD command.
>
>Thank you very much for your reply and sorry about the late response to your suggestion.
>
>Mao.
You can also try to use Coverage Profiler. To turn it on SET COVERAGE TO mylog.txt
--sb--