LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reverse order of menu ring

Solved!
Go to solution

Hello everyone, I have a menu ring which lists all the files generated, the file is named by date, time and increment number, how can I reverse the order of the list, make the newly generated file always appear in first place. Thank you. Screenshot (7).png

0 Kudos
Message 1 of 3
(2,361 Views)
Solution
Accepted by Xiao@Gemini

The elements of the ring are saved in an Array.  All you need to do is re-order the array and put it back.  I created a Ring control with the strings One, Two, and Three, ran this code, and it became Three, Two, One ...

Reverse Ring.png

 

Did you think to look up LabVIEW Help for "Ring"?  It would have told you about this.

 

Bob Schor

0 Kudos
Message 2 of 3
(2,358 Views)

Something must have loaded the items into the menu ring.  Why not reverse the data going into it?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 3
(2,352 Views)