restart form


The restart form statement restarts the current form.


restart form




The form is typically restarted when a form or window is saved or cleared. The script associated with the OK or Clear button in a form typically contains a restart form statement.

Restarting the form includes clearing the windows for the form, setting the focus to the first field in the tab sequence of the main window of the form, returning all fields to the state specified by their properties, and running the window pre script and the pre script for the first field of the main window. The restart form statement won’t cause the form pre script to be run.

Table buffers used by the form aren’t cleared when the restart form statement is run. Use the clear table statement to clear the buffers.

The contents of a field will be saved when the form is restarted if the SavedOnRestart property is set to true for that field.

Documentation Feedback