LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rename variant attribute

Hello,

for my application I realized I need some "rename attribute" function, maybe I took a wrong path somewhere because the only way I found to do it doesn't look very optimized, is there a better way than recreate the variant like this?

 

Also I want to keep the same order in the variant, that's why I don't just delete the existing one to add it at the end with the new name.

 

Cheers,

Jimmy

 

rename variant attribute.png

0 Kudos
Message 1 of 5
(3,682 Views)

jimchretz wrote:

Also I want to keep the same order in the variant, that's why I don't just delete the existing one to add it at the end with the new name.


You misunderstand Variants then.  The attributes are sorted.  That's how the lookup of attributes can be fast using binary searches.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 5
(3,675 Views)

Oh I just verified, I didn't learn nothing today then, thanks a lot!

0 Kudos
Message 3 of 5
(3,671 Views)

Just to be clear, I'm pretty sure that only the attribute names are actually sorted for the search, along with associated pointers which point at the actual data, so that data isn't being moved around as you add or remove attributes.


___________________
Try to take over the world!
0 Kudos
Message 4 of 5
(3,662 Views)

rename variant attribute.png

"If you weren't supposed to push it, it wouldn't be a button."
Message 5 of 5
(3,630 Views)