The close form statement closes a specified form.
close form form_name
• form_name – The name of the form to be closed;
Closing a form causes the form post script to run. It also closes all open windows on that form. Each window’s post script will run.
Use caution when using the close form statement. If you use this statement to close the form that contains the script that is running, any statements following the close form statement will not run.