Use the CLOSEWINDOW command to close a form from within an application or entry/exit procedure (EEP). Without the alias it closes the current form.
Options
alias
Specifies a window name, which is the name given to the instance of an MDI form started with the "AS alias" option when using the ENTER, EDIT USING, or BROWSE USING commands.