Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: ModName_modRef argument for hardDelete
Topic Summary:
Created On: 7-Oct-2003 00:25
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 7-Oct-2003 00:25
User is offline View Users Profile Print this message


Janet Ma

Posts: 115
Joined: 12-Sep-2002

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.

Report this to a Moderator Report this to a Moderator
 7-Oct-2003 15:17
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

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
Report this to a Moderator Report this to a Moderator
 7-Oct-2003 17:43
User is offline View Users Profile Print this message


Janet Ma

Posts: 115
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 7-Oct-2003 18:35
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You also need to check that it IS a module; in this case if "modRef" is not null.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.