PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → 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
Débuté par John Fligg, 06 déc. 2017 13:03 - 2 réponses
Posté le 06 décembre 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.
Posté le 06 décembre 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
Posté le 06 décembre 2017 - 14:25
Oops - no I didn't use quotes. Thx so much.