Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveControl question
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00130226
Message ID:
00130239
Views:
14
>>>I used to use _curobj to get the identity of the current object. Now I'd like to use Activecontrol, but I don't know how. If I have a form-level onkey event that needs to know if and which field the user is in when they press that key, is ActiveControl what I should do? And what's the syntax?
>>>
>>>Thanks in advance,
>>>JR
>>
>>You better use Form.Keypress event (Form.Keypreview=.t.), e.g. try there
>>=messagebox(thisform.activecontrol.name)
>
>Exactly what I needed and none of what I didn't!!!
>
>You're a good man, Edward Pikman,
>
>JR

Thank You.
Did you assume that I will start lecturing about OO model and class polymorhpisms :)?
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform