LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
SpaceX Trip

Set/Get Variant Attribute for Multiple Attributes

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.

Right now, you can only set a single variant attribute at a time.  You can get "all" variant attributes, but it would be nice to be able to get a specific "group" of them.  (the same could be said for delete)

 

From a programmer standpoint, the nice way to accomplish this would be to wire in an array of strings for the variant attributes you are interested in, instead of placing the function in a for loop.  It would also be nice to wire in the data type for all of those attributes, so you don't have to call the variant-to-data.

2 Comments
crelf
Trusted Enthusiast

The reason is that the datatype of a variant attribute is a variant itself, so return an array of variants is easy.  Setting multiple at the same time isn't as easy as the input array of properties, they'd either all need to be of the same datatype, or all converted to variants before being built into the array.





Copyright © 2004-2023 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.
Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.