# (done_dialog \[flag\]) [GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md) <a id="154"></a> ## (done\_dialog \[flag\]) --- Dismiss that dialog box. --- This function terminates a dialog box. It returns the x,y coordinates of the dialog box's position, which can be used by the [start\_dialog](%28start_dialog%29.md) function to place the dialog in the same position. *Flag* is an alternative return code that is returned by the **start\_dialog** function; you can use this flag for any purpose you desire. When *flag* has a value greater than 1, the value is returned by the [start\_dialog](%28start_dialog%29.md) function. Otherwise, the [start\_dialog](%28start_dialog%29.md) function returns as follows: | Returns | Meaning | | --- | --- | | 0 | User clicked Cancel. | | 1 | User clicked OK. | **Example** | Code | Returns | | --- | --- | | (**done\_dialog**) | (0.000000 0.000000) | **Tell me about...** [(action\_tile key expression)](%28action_tile%20key%20expression%29.md) [(new\_dialog dialog dcl-id \[function point\])](%28new_dialog%20dialog%20dcl-id%20-function%20point-%29.md) [LISP Compatibility](../LISP%20Compatibility.md) [Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md) <a id="holding"></a> ## Other versions with matching text [GstarCAD 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28done_dialog%20-flag-%29.md)