PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Is there a way to find out if a window is open
Is there a way to find out if a window is open
Iniciado por guest, 06,dic. 2017 13:03 - 2 respuestas
Publicado el 06,diciembre 2017 - 13:03
I have tried WinStatus and other things but I cannot find a way to find out if a Window is open without getting an Exception Error.

Is there any way to find out if a Window has been opened other than setting a global? This is for WD and WM

Thx.
Publicado el 06,diciembre 2017 - 13:37
Hi John

yes there is, and it is winstatus... If you got an exception, it's probably because you didn't put the name of the window between quotes... Between quotes, it's a string that can be used to check if open or not, without the quotes, its a windows object that exists only when it is open.

And that means that you could also check by using a wehn exception to encapsulate using the windows object.

Best regards
Publicado el 06,diciembre 2017 - 14:25
Oops - no I didn't use quotes. Thx so much.