![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() Answer: thank you for the idea, yeah, i wish they would make garbage collection easier. | |
![]() |
|
I have an array in my GUI and I would like to remove an element and resize the array - is this possible in DXL?
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
thank you for the idea, yeah, i wish they would make garbage collection easier.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
delete dynamic array element and resize
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.