How to close screen2 and initialize screen1

My app has 2 screens, when I close screen2 I need to run screen1.Initialize.
If I don't close Screen2 and open screen1, screen2 remains open.

Is it correct using When Screen1 Other Screen Closed ?

Try this:

See also here:


Thank you Anke, your code runs well, but I can not understand how it works, can you explain me ?

Each screen is closed as soon as another is opened. In this way, only one screen is open at a time.

I understand that, but how works result ? is it really necessary to use a procedure?

No, this does the same:


1 Like

Thank you, it works well

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.