what is a vba command to close read-only modules along with doors application itself

馋奶兔 提交于 2019-12-24 21:24:23

问题


Is there any command to close read only Doors modules and then close the doors application itself?


回答1:


Closing the application itself is accomplish with the command:

exit_

This will close your instance of DOORS. Use carefully- no DXL code after this call will be executed.




回答2:


Additionally, in case you have not already solved that part: https://www.ibm.com/developerworks/community/forums/html/topic?id=7a01e109-c6a2-443b-a3df-15f781b70c08 shows how to connect to an existing DOORS application.

Closing read only modules explicitely is not needed if you plan to exit DOORS, as the DOORS client will close all read only modules.

You should rather care about modules that have been opened in edit mode and where things have already been changed. Not sure if it wise, but if you want something like an auto-save-and-close, you would probably need this DXL script

Module m
for m in database do {
    if (unsaved m) {
        save m
    }
}
exit_

This will not help you in all situations, e.g. if you have made changes to the current view, DOORS will ask you for a confirmation. For this, you might have to load the Standard view in all modules. More problems might occur.




回答3:


If you want to close the DOORS instance use : exit_.



来源:https://stackoverflow.com/questions/56536641/what-is-a-vba-command-to-close-read-only-modules-along-with-doors-application-it

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!