>>That's it! In the toolbutton I set focus to another field on the form and the revert worked fine! A thousand thanks!
>>
>>When I tried to set focus to the active form active control the focus just stayed with the active control, so I created another control on the form (aptly named ducttape), transferred focus to it, ran the app object revert routine, then went back to the formerly active control. It worked like a charm. You have saved many hairs on my head! There's probably a better way to do this, but at least now I know what the problem was!
>>
>
>OK, you need to run the debugger. Put a watch on PROGRAM() and make it a breakpoint.
>
>Now, try your _SCREEN.activeform.activecontrol.setfocus()
>
>
>You should see that it fires WHEN (to see if it can take Focus).
>Then VALID to validate its value, to see if it can lose Focus.
>Then LostFocus to lose the Focus.
>Then GotFocus to get the Focus.
>
>Even though the same control has the focus, it WILL have written its value to the table and you should be OK.
>
>
>You don't _need_ to use DuctTape
>
>
>You know why it's like The Force?
>
>Duct Tape has a Dark Side, a Light Side, and it binds the Universe together.
(ROFL)
Tom