>>Best to check:
>>
>>
VARTYPE(<i>ObjRef</i>.activecontrol) = 'O' AND ! ISNULL(<i>ObjRef</i>.activecontrol)
>
>PMFJI, I put a single textbox on a form. put the following in the forms activate:
>
>thisform.text1.setfocus
>? vartype(thisform.activecontrol) = 'O'
>
>If the textbox is enabled I get .T.,
>if it's disabled I get an error 'thisform.activecontrol is not an abject'?
>
>I would think you would get .F. when disabled, what gives?
You may have to use
TYPE("thisform.activecontrol") rather than
VARTYPE(thisform.Activecontrol) - there's something funny that goes on with
_screen.ActiveControl, and it may apply to
thisform.activecontrol as well (it'd actually make sense if they behaved the same way.)