PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Close all child windows
Close all child windows
Débuté par John Marrone, 16 aoû. 2004 14:20 - 1 réponse
Posté le 16 août 2004 - 14:20
Does someone know how you close all child windows before you open a new child window, or just whats the
function to close all child windows. I do not want to close the main app, just all the child windows.
Thanks for any help
John Marrone
Posté le 18 août 2004 - 11:13
Hi John,
code below does the trick:
PROCEDURE CloseAllForms(pExcept="")
sWindows is string

sWindows = EnumElement(enumWindow)

WHILE sWindows <> ""
IF WinStatus(sWindows) <> NotFound AND sWindows <> pExcept THEN
Close(sWindows)
END
sWindows = EnumElement()
END
Regards.

NS-Consulting