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:
00156647
Views:
38
I am currently attempting this with an Edit Control. However, it appear that what ever object I try this with it fails.

I have tried _SCREEN.ActiveForm and I can get the name of the form in focus. Although, if I were to go a little further and issue a _SCREEN.ActiveForm.ActiveControl I never get a reference to the currently focused object.

As a work around, I've implemented something that Edward Pikman recommended. Eds approach was to create a property on the form to keep track of the last focused object, and in every object's GotFocus event, update that form property.

This is really weird.

As I said I am using VFP 06.00.8167.00
Juan L. Romero
gcandela@javanet.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform