Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I tell what object on a form has the current focus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00288577
Message ID:
00288793
Vues:
20
>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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform