I don't log to a file, I route the messages to the Debug Output window.
If a control actually does have focus _screen.ActiveForm.ActiveControl.Name should have a value. You should watch that expression in the debugger.
>Can I have the event tracking turn on via code other than doing a set step on? The debugger interferes with the form and adds lines to the log that are confusing to follow.
>
>Unless I quit/restart Foxpro I cannot open the log file because of a "File is in use" error.
>
>Is there something I can do to know what has the focus at a particular time during the read? It seems that if I do not manually set the focus nothing on the page has it. That makes me think that an object has it that I am unable to see. I tried ActiveControl, but it seems unreliable and doesn't have value at the time I need to know what it is.