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: Unable to check the AttrType by code
Topic Summary:
Created On: 19-Jul-2006 23:07
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.
Answer This question was answered by Al Lione, on Thursday, July 20, 2006 3:22 PM

Answer:
Also, be sure you are spelling the attribute type correctly. I had a situation where there was a blank space at the end of the name, and it drove me crazy, searching for "Selected" when the actual name was "Selected "
 19-Jul-2006 23:07
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

I created an AttrType "Selected" type "Enumeration" and assigned values for a module. I save the module, close and open it again. I see the "Selected" attribute in Types. When I apply the following code
Module m = current
AttrType at = find(m, "Selected")
print at.type

I get the Error message :

null attribute type parameter was passed into argument position 1
i.e for the print at.type.

Please advise where I am going wrong. Thanks in advance.

- Krishna

Report this to a Moderator Report this to a Moderator
 19-Jul-2006 23:44
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

That code works for me. I suspect you have a current module problem, meaning the current module isn't the one you think it is. Try the attached code.

- Louie
Report this to a Moderator Report this to a Moderator
 20-Jul-2006 13:08
User is offline View Users Profile Print this message


Al Lione

Posts: 59
Joined: 13-Jul-2004

Answer Answer
Also, be sure you are spelling the attribute type correctly. I had a situation where there was a blank space at the end of the name, and it drove me crazy, searching for "Selected" when the actual name was "Selected "
Report this to a Moderator Report this to a Moderator
 20-Jul-2006 15:22
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Thanks Al, that was the problem. 

- Krishna

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.