Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No luck using FORM.ActiveControl
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00156203
Message ID:
00156639
Vues:
40
Juan,

I've never used thisform.ActiveControl frankly I've never found a use for it. I've only used _screen.ActiveForm.ActiveControl a couple of times for a voyeuristic extension to the object inspector I wrote for the PTF-OOP book. If you are going to use either one it's common practice to have to test them using type() to see if they are currently pointing to an object.

I think the debugger pulls focus away from VFP making no control active as far as ActiveControl is concerned. Where exactly are you trying to use ActiveControl?

>That is exactly right, if I use THISFORM.ActiveControl.Name I should see the name of the focused object. However, this does not work! In addition, I have tried placing a break point in the debugger, placed a watch for THISFORM.ActiveControl.Name and the expression can not be evaluated.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform