If you can figure out which form [i], the following will give you close to what you want as far as the control name:
_screen.forms[i].activecontrol
According to VFP Help [and my experience] _screen.activeform will not work because it not available at design time and is read-only at runtime.
I guess you need this for some other reason, but you do have the combo boxes at the top of each code window that identify which control and method you are in.
>True, but how do I get the information from the window? I need to get it into a variable. I looked through all the SYS commands, but they all seem to only work at run time.
>
>Thanks,
>
>Michelle
>
>>Does clicking on the Window menu pad work? There will be a check mark next to the active window.
Mark McCasland
Midlothian, TX USA