以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  超时直接退出  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=153142)

--  作者:tld
--  发布时间:2020/8/1 13:44:00
--  超时直接退出
If LastInputTickCount > 900000 Then
    Syscmd.Project.Exit(True)
End If

老师,上面的代码 应该到时保存后退出。但发现依然弹出对话框,选择是否保存。如何不出现对话框,直接退出?

谢谢!

--  作者:有点蓝
--  发布时间:2020/8/2 10:04:00
--  
试试
If LastInputTickCount > 900000 Then
Syscmd.Project.save
    Syscmd.Project.Exit(True)
End If