Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I tell what object on a form has the current focus
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00288577
Message ID:
00288793
Views:
22
>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?
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform