Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No luck using FORM.ActiveControl
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00156203
Message ID:
00156639
Views:
36
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform