ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
‎10-08-2015 11:55 AM
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
‎10-08-2015 12:09 PM
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.
‎10-08-2015 12:13 PM
Oh I just verified, I didn't learn nothing today then, thanks a lot!
‎10-08-2015 12:25 PM
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.
‎10-08-2015 03:03 PM