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: Question on getting reference to array of strings in a DxlObject
Topic Summary: To then assign as the values of a DBE
Created On: 20-Feb-2008 20:44
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.
 20-Feb-2008 20:44
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

OK here's what I'm trying to do.

I have a skip list that stores DxlObjects with a string key.
Each DxlObject has several keys.
One of them can store an array of strings (string x[] not the Array type).
Another can store how many values is in the array.

How can I get a reference to said array suitable to be used as the values for a dialog box element? I know the values of the array that is assigned to be the values of a DBE must be global so that the values are available to other functions as well. But I figure since the skip list which holds the DxlObject which holds the array is global, I could do something like the following.

Any ideas?

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 21-Feb-2008 12:44
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

I see the problem.

I tried, but I can't find a way to correctly cast the reference to the string array when retrieving it from the DxlObject.

However, I did discover some strange syntax that allows you to extract elements from the array individually.

Take look at this.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 21-Feb-2008 13:41
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Don't worry about it. Instead I'm just defining the element with an empty array and then after the dialog box is realized, going back through those elements and loading the values in manually with insert(). Then setting it to the correct option for the current object.

That's pretty interesting though with what you did find.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
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.