Exiting

A normal exit from a data form occurs when the user presses the Exit key (KEY_F10 by default). Also, the default is for form exit to occur if the last field is filled and the user presses a key to move to the next field. Upon exit, the end-form function is called (if you have installed one), and a number of other actions occur.

Verifying Exit

If enabled, a verify-exit function is called when a form is exited. A message window is popped up, and the user is asked whether he or she wishes to exit the form (you can change this and any other system message). If the answer is "no", a return is made to the data entry form, allowing further editing of the form. If the answer is "yes", the exit procedures are continued. Display of the verify-exit message is an option that you control. See Chapter 16, "Data Form Processing Options."

Data Conversion and Data Placement Upon Exit

Data entered in a data field is always initially stored as string of characters in the edit buffer, regardless of the field type. When a form is exited (as opposed to quit), the contents of the data fields are automatically converted to the data types that correspond to the specified field types. The converted values are placed in the underlying data variables for the fields.

After all entered data has been successfully converted, the form window is removed from the screen and the underlying screen image is replaced.


Home Contents Previous Next