![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: ModName_modRef argument for hardDelete Topic Summary: Created On: 7-Oct-2003 00:25 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I've seen ModName_modRef reference used in the DXL manual but not sure how to use it
I've tried to pass in a string of the module name hardDelete(string value), but get an error, hardDelete expects the modName_modRef argument, but I am not sure how to use it. Any help would be appreciated. |
|
![]() |
|
![]() |
|
To use the function hardDelete to permanently remove a module from the database, try this:
string modName=<full path to module> ModRef_ modRef=module modName if(!confirm("Permanently delete the module " modName "?")) halt hardDelete(modRef) Where <full path to module> is something like: "/Project 1/Requirements/old requirements module" You may need to introduce error checking to ensure that the module is not currently open or in an unsaved state. -Dennis Edited: 7-Oct-2003 at 15:18 by Dennis Lockshine |
|
![]() |
|
![]() |
|
Thank you Dennis, I've got the confirmation box to come up. I'm using DOORS 6R1 and there was an exception violation access error so something is buggy with the the DOORS database server
--Janet |
|
![]() |
|
![]() |
|
You also need to check that it IS a module; in this case if "modRef" is not null.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
ModName_modRef argument for hardDelete
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.