Determining subwindow existance

How do you programmatically determine if an exterior subwindow exists?

I've tried permutations of DoWindow, SetWindow and GetWindow with no luck. The only thing I can see is to trap for an error caused by executing a command that anticipates the existence of the subwindow... there has to be a better method than that.

Thanks,

Jeff
Hi,

You might try win recreation("",0) and parse the string for subwindow.


Andy
Try WinType(). For example
display;display/host=#
Print wintype("graph0#g0")
1
Print wintype("graph0#g1")
0
You can also use WinList with the proper options and use WhichListItem on the result to see if the window is listed.

--Jim Prouty
Software Engineer, WaveMetrics, Inc.
Thankyou, hegedus, AG and Jim for the swift replies. They were very helpful.

WinType was what I was looking for. Thanks also for bringing WhichListItem to my attention. This will be a handy tool to have... if only I can remember it.


Jeff