Question:
How can I set up a modal screen to be closed every time the user clicks a button?
Solution:
To do so, you must execute the Close(Code) method of the screen where the modal window is. For example:
Screen.Close(0)
NOTE: For further information, please check the attached sample application.