NI TestStand Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Ryan_ngc

An auto populate array elements option in the "resize array" dialog box

Status: New

It would be nice to have an option to resize an array and have the new elements contain the same properties/variables as the first element. The resize array dialog box has a checkbox for "Empty". How about one for "Auto populate from first index" or something?

 

I currently do a copy and paste into each new element, which is no fun.

 

resize array dialog box.jpg

4 Comments
dug9000
NI Employee (retired)

One thing you can do to get similar behavior to what you are requesting is to create a custom data type and then create an array of that type. Then, if you resize the array, it will create the new elements as instances of your custom data type.

Jervin Justin
NI Employee (retired)
Status changed to: Under Consideration
 
Jervin Justin
NI TestStand Product Manager
Elaine_R.
Active Participant

I've also used a typedef for this, but it is a frustrating extra step.  Having a 'default' value that you can set 1x on the top level of the array and have it propigate through, would be handy. Maybe it could be stored as an attribute of the array object? But even using the 1st element as a default for future elements would be better than creating a typedef 🙂 

 

--Elaine R.

Lars_L
NI Employee (retired)
Status changed to: New