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: delete dynamic array element and resize
Topic Summary:
Created On: 14-Nov-2008 19:04
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 Janet Ma, on Thursday, November 20, 2008 5:41 PM

Answer:
thank you for the idea, yeah, i wish they would make garbage collection easier.
 14-Nov-2008 19:04
User is offline View Users Profile Print this message


Janet Ma

Posts: 115
Joined: 12-Sep-2002

I have an array in my GUI and I would like to remove an element and resize the array - is this possible in DXL?
Report this to a Moderator Report this to a Moderator
 17-Nov-2008 15:13
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Use the Array() type in DXL. It will expand as needed. Can actually delete items from it as well.

You could recreate the array at currentArraySize-1 and then copy the contents except the entry to be deleted. Just use a global array variable. And set the global variable to null before assigning it the new array. I think regardless the space used by the old array is gonna be taken up until after the script completes since DXL doesn't do any garbage collection.

Maybe some day...somewhere over the rainbow...

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 20-Nov-2008 17:41
User is offline View Users Profile Print this message


Janet Ma

Posts: 115
Joined: 12-Sep-2002

Answer Answer
thank you for the idea, yeah, i wish they would make garbage collection easier.
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.