There is a way of knowing when the user is leaving an input window and going back to the output window. This is done by using the On Close Detail form event for the output form. To use this form event, make sure the event is turned on for the form and include some code in the Output Form Method. The form event can be turned on in the Form Properties dialog.
If (Form event=On Close Detail)
For more information on form events you might want to look at the section of the language reference manual regarding form events.
Note: This form event will not work correctly in the default output window in User mode. If you want to use this event in user mode, you'll need to execute some code first, such as: