I've been playing around with this and had a question:
Why is the value returned from a dialog always made a positive number?
It isn't clear in the documentation that this is the case, only that returning a number less than 1 will cause the window or dialog to close, with positive values causing certain actions to take place without necessarily closing the window or dialog.
I ask just for information.
Bill