Hi Dragan ---
>Inlist sounds like calling for trouble (what if in VFP7 we have a jukebox or any other newbox class).... mmm, why not do like this:
>
>oTempControl=_screen.activeform.activecontrol
>oTempControl.SetFocus
>_screen.activeform.SaveTheRecord
>
> I don't know for sure if losing focus first is necessary for the control.value to be written into alias.field, but I seem to remember that gaining focus is sufficient. If this works, we don't have to take care of the control's class.
Hmmm...the problem stems from toolbars and menus not respecting the fact that the form has lost focus and hence the control has not lost focus. Have you tried this code?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05