Form-Close

Function Name dcl-Form-Close
Syntax   (dcl-Form-Close <CONTROL> {DialogStatus [as Long]})
Return Type 2DPoint (upper left corner of dialog in screen coordinates)
Applies To Control Bar, File Dialog, Modal Dialog, Modeless Dialog, Palette

This method closes the dialog box. If the optional DialogStatus argument is provided when closing a modal dialog, it will become the return value for the call to Form-Show that displayed the modal dialog. Note that the status codes 1 and 2 have predefined meanings in Windows (status code 1 is used when a dialog is closed by pressing [Enter], and status code 2 is used when a dialog is cancelled.)