On Mon, Aug 28, 2006 at 04:09:41PM +1000, Boyd Townsend wrote:
>
> Can anyone provide a hint on how to check to see if a "Browser window" is
> open and if so close it through mapbasic????

Loop through all open windows backwards (NumWindows() to 1 Step -1) and
test the window typw of each one (using WindowInfo()). If the window type
is a browser (WIM_BROWSER) then close it with the Close Window command.

It is important to count backwards when closing windows in a for-Next loop.
But since you were askng only for a hint, I won't spoil your fun by simply
telling you why.

- Bill Thoen
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to