![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.