01-25-2006 10:01 AM
01-25-2006 11:29 AM - edited 01-25-2006 11:29 AM
Message Edited by smercurio_fc on 01-25-2006 11:31 AM
01-26-2006 02:12 AM - edited 01-26-2006 02:12 AM
Thanx, but the problem is... i have written a routine that prompts the user to write down an profile name. This profile name is saved on disk. And now i want to select from an ring the saved profiles. The problem is the indexing of these profiles in the ring...
ring
profile 1 (index1)
profile 2 (index2)
So when you saved more than one profile after another (you can only save one per routine) you can select profile 2 to load and run from the ring...
So i have a problem to put these new profiles in the ring or maybe in an array, because i don't know how to increase the array by one after you saved a new profile !
Hope this describes my problem better...
Message Edited by Estrakay on 01-26-2006 02:21 AM
Message Edited by Estrakay on 01-26-2006 02:22 AM
01-26-2006 02:26 AM
Hi
I'd suggest you to split up this two steps. In step one you write the new profile text to disk. In step two you read all available profiles from disk and fill the ring with this values - so you will have the most recent values available.
Thomas
07-31-2022 12:36 PM - edited 07-31-2022 12:37 PM
Found the way to add. It was much simpler than I thought
Use strings property of menu ring
This appends new row to menu ring.
08-01-2022 02:39 PM - edited 08-01-2022 02:41 PM
@alexela wrote:
This appends new row to menu ring.
(did you notice that this thread was from 2006? 😮 )
The correct tool to append (or prepend) an element to an array is "built array", not "insert into array".
"Insert into array" is needed for the rare cases where you need to add an element somewhere in the middle, shifting all higher elements up in index. Using it with an unwired index creates confusing code because it is not always obvious to everybody where the insertion will occur.
(There does not seem to be an obvious way to stop your VI?)
08-01-2022 02:50 PM
I was searching for same question )
You right, right way is to use build array, I tested with insert and it worked too.
I just saw some wrote that this is not working...