Hi folks!
How can i evaluate if a certain window, for example: “winProcess” is open, then do this, else do that?
Regards
Hi folks!
How can i evaluate if a certain window, for example: “winProcess” is open, then do this, else do that?
Regards
[quote=211995:@Gerardo García]Hi folks!
How can i evaluate if a certain window, for example: “winProcess” is open, then do this, else do that?
Regards[/quote]
I found the solution:
for i as integer = 0 to WindowCount - 1
if window(i) isa MyWindowType then
if MyWindowType(window(i)).name = nom then
window(i).close
end
end
next i
ye[quote=211998:@jean-paul devulder]you can also use a property for store the state of window
dim IsOPENwinProcess as boolean
in Open event
IsOPENwinProcess = true
in Close event
IsOPENwinProcess = false[/quote]
but don’t access it directly. If the window is not initialized, it will trigger the _open event