PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Silly question - opening windows
Silly question - opening windows
Iniciado por guest, 30,ene. 2018 12:04 - 2 respuestas
Publicado el 30,enero 2018 - 12:04
This is a really basic question - apologies!

Using WD or WM I want to open Windows A and B. However I want window A to wait until completed and then launch window B.

The problem is Window B would be unknown and require parameters. So what I am implying by that is that it is no good putting any code under the Window A close button.

I'm sure I recall being able to open 2 windows after each other but not running the 2nd line of code until the Window A has been closed.

Thx
Publicado el 30,enero 2018 - 12:31
Hi John

there are several ways to solve that problem (if I understood it correctly)

In Windev, where modal windows are available, you just need to do:
open(windowa)
open(windowb)

WindowA begin modal, the second line is executed after its closing only.

However, there are no MODAL windows in mobile. So in that case, you would need to do
OpenMobileWindow(windowA)

and then in the "closing of secondary window area" (sorry, don't remember the exact name), do the OpenMobileWindowB

Best regards
Publicado el 30,enero 2018 - 12:42
Thx Fabrice. Yes Modal, that's what I was thinking. Plus the WhenClosingChildWindow embed point open Window B.

Told you it was silly

Thx

John