You can use
SYS(1272, ThisForm.ActiveControl)
to get want you want.
Notice:
ThisForm.ActiveControl does not work with grid controls - it just returns reference to Grid. If you wish to get the active control in grid you will need aditional programing. So you should check the
BaseClass property of ActiveControl as a starting point.
Hope this is useful
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!