>>PEMSTATUS(Object,"SetFocus",5)=.t.
>>
>>>How can I know if an specific control has the focus.
>>>Like:
>>>
>>>thisform.whohasthefocus
>>>*!* Return the name of the control that has the focus *!*
>
>This only returns if the object in question has a PEM named SetFocus. It doesn't return if the object has the current focus.
If thisform.activecontrol isn't workable, or something derived from it, you can check to see if there's a TAG property, and then write something unique to it, and spin around thisform looking for it: