专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > PB

根据字符串窗口名,来关闭一个窗口解决思路

发布时间:2011-06-29 20:31:02 文章来源:www.iduyao.cn 采编人员:星星草
根据字符串窗口名,来关闭一个窗口
知道一个窗口名,但它是字符串,怎样关闭这个的窗口。用close不行啊,它的参数是windowname类型。

------解决方案--------------------
简单一写,没有 测试

window activesheet,firstsheet
string mtext

firstsheet = w_frame.GetActiveSheet()
if not IsValid(activesheet) then return
activesheet = w_frame.GetActiveSheet()
do while IsValid(activesheet) THEN
if activesheet.Title = "xxxx " then
close(activesheet)
exit
end if
if activesheet =firstsheet then
exit
end if
activesheet = w_frame.GetNextSheet ( activesheet )
END IF
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: