CLOSE Function (Dialog)
Closes a dialog window that has been opened by OPEN Function (Dialog).
The Dialog variable that you are closing.
If CLOSE is used on a dialog window that is not open, a run-time error will occur.
The dialog windows of an object are automatically closed when the object terminates.