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: Object Index Numbers
Topic Summary:
Created On: 19-Aug-2004 11:16
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.
 19-Aug-2004 11:16
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Did you know that you can use an Object Index Number to get a handle on child objects.
I can't actually think of a use for this, I just thought it was interesting.

Object o = current Object

Object p = o[1] // returns first child of o

p = o[2] // returns second child of o

p = o[1][2] // returns second child of first child of o

Also works for modules

p = m[2] // returns second level 1 object in module m



-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 19-Aug-2004 16:32
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Old news. But you could use if for scripts that care about the immediate children of an object, such as one that checks the hierarchy structure to insure all the TEXT children come before all the HEADING children. Another would be checking that all the children of a deleted object are in fact deleted themselves. I wrote those scripts from the child's perspective (if child is text then its immediate older sibling must be Text; and if an object is undeleted then its parent must be undeleted), but that was just choice.

Looks like you could use this to insert a new text object after all the other text subordinates of an object; but before the sub-section subordinates.

- Louie
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.