LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I display variant attributes not alphabetically but rather in the order I added the attribute to the variant

I add attributes to a variant that I later want to put back into a particular string format.  When I pull the attributes out they are alphabetical not in the order I put them in.  Is there some property I can change to keep the original order of the attributes?

Thank you for your time
0 Kudos
Message 1 of 5
(2,971 Views)
Hi,

Would it be possible for you to post a snippet of your code that is displaying the variant types. 
By the way, what version of LabVIEW are you using?

Regards,

Nadim
Applications Engineering
National Instruments
0 Kudos
Message 2 of 5
(2,945 Views)
I am using LV 8.2.  I have attached a screen shot.  One display shows the attributes in the order I want because I added numbers and a character to the name of the attribute.  The other var display shows the normal way LV displays the attributes.  I use the variant and the attributes to reconstruct the string that you see as the input.  However, the order does not stay consistant to the output which may break things down the road.

I just want to know if there is a settable property on the variant attributes to display them as entered rather than alphabetically.  I have a work around but I would rather know if it is settable through LV instead of adding my numbers and char and stripping them off at the back.

Thanks
0 Kudos
Message 3 of 5
(2,932 Views)
Better screen shot.  Shows string order with and without "prepend"
0 Kudos
Message 4 of 5
(2,931 Views)
Hi,

Could you post the LabVIEW code so we can see the exact behaviour you are seeing.

Regards,

Nadim
Applications Engineering
National Instruments
0 Kudos
Message 5 of 5
(2,910 Views)