Window.getcount
From codeTank
Contents |
Description
window.getcount will return the number of windows that are currently open. It is primarily used for checking whether window.pumpmessages should be called in a loop.
Arguments
There are no arguments for this function.
Returns
window.getcount will return the number of windows that are currently open, and 0 if there are no windows open.
Example
window.create() while window.getcount() > 0 do window.pumpmessages() end

