菜单项“保存”代码
有菜单项“保存”,希望保存当前活动窗口的数据窗口内容,我的代码如下:
定义全局变量window w_name
int ret
w_name=w_jwd.GetActiveSheet()
ret=w_name.dw_1.saveas()
if ret>0 then
messagebox("提示!","存储成功,请到指定位置查看")
else
messagebox("提示!","存储失败,请重新选择存储文件")
end if
可是不能通过编译错误是:imcompatible property dw_1 for type window
窗口是用opensheet打开的
每个窗口都有dw_1
why???