If you have an exit button on a form in edit mode, do not want to save any
changes and don't want the "Do you want to save this document window" to
appear, place the following code in the button.
I usually have two exit buttons on a form, one for read mode and one for edit
mode, with the appropriate hide when formulas. The read mode is labeled Exit
with just the FileCloseWindow command. The edit mode button is labeled Exit
without saving.
FIELD SaveOptions := "0";
@Command([FileCloseWindow])
This was first published in November 2000