Explore your gui map, win_activate, win_close, and set_window statements. Ensure each statement matches the desired window. On the surface it sounds like all your issues are related to this basic concept - referencing the correct window at the correct time.
yes [img]images/icons/cool.gif[/img] and still have not worked out how to close down multiple browsers. The following code will only work if there is only one browser open.
If there is more then it will skip it.
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
while(win_exists("Browser Main Window" == E_OK)
win_close("Browswe Main Window"</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">There seems to be nothing on this forum to give the correct answer although I have seen it done previously.
any help much appreciated [img]images/icons/smile.gif[/img]