|
if sqafindobject("type = window ;Caption=Microsoft Internet Explorer") = sqasuccess then
Window SetContext, "Caption=Microsoft Internet Explorer", ""
pushbutton click,"text = 确定"
goto mark
else
window CloseWin,"currentwindow",""
startbrowser "http://www.mdd.com.cn/scweb/logon.jsp","WindowTag=WEBBrowser"
window wmaximize,"currentwindow",""
goto mark
end if
上面是我写的一段代码。我想让else后面到end if之间的语句跟在else后面执行。而现在的执行情况是只有 window CloseWin,"currentwindow",""跟在else后面执行。后面其他的语句则不论条件是否成立都顺序执行。SQABASIC我不太熟悉,在帮助里也没有找到解决的办法(试过用冒号分隔多条语句,还是不行)。请问这里应该用什么格式?谢谢! |
|