>>>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