what is a vba command to close read-only modules a

2019-08-17 02:20发布

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

标签: vba ibm-doors
2条回答
何必那么认真
2楼-- · 2019-08-17 03:15

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.

查看更多
Fickle 薄情
3楼-- · 2019-08-17 03:22

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.

查看更多
登录 后发表回答