I am working in Natural for Windows 6.2. I created subroutine 1 to executes a map. Subroutine 1 calls subroutine 2 that “DEFINE WINDOW”, “SET WINDOW”, and writes to the “popup” window. This works fine but now all processing stays in the pop-up window (i.e map in subroutine 1, now executes in the popup window).
When I’m done, I want to close the popup window created in subroutine 2 and execute the map in subroutine 1 again with no popup window.
So I used the “SET WINDOW OFF” command as the last line of code in subroutine 2 that created the popup window. However, now when subroutine 2 is called, it does not create the pop-up window at all. Its almost as if having the “SET WINDOW OFF” command in the same module as “DEFINE/SET WINDOW” nullifies the “DEFINE/SET WINDOW” commands.
Am I misunderstanding or incorrectly using the “SET WINDOW OFF” command. Based on what I’ve read the “SET WINDOW OFF” command deactivates the current window (i.e. the popup in subroutine 2) and re-activates the previously deactivated window (in this case, the map in subroutine 1).
Any feedback would be greatly appreciated