Close the modal dialog.

Call:

ts_dialog(iDialogDescr,"PostCloseRequest",string okorcancel);


Here:

okorcancel - string value "ok" or "cancel" - means with what result to close the dialog.

On "ok" the invoke function will return 1, otherwise 0.