11-29-2009 08:33 AM
I created a ring control inside an array which the array can shrink and grow according to the user input. I'd like to save the selected value in a file. From what I understand, to do so, I need to use RingText.text but it only saved the last value of the array instead of all of it. How do I do to save all selected value? Thanks 😄
Solved! Go to Solution.
11-29-2009 09:18 AM
Hi,
I'm afraid I don't understand your question.
It would be great if you could elaborate more. Also, if you don't mind, please tell us the overall problem you are trying to solve. I ask this, because I have a feeling that you're complicating something that can be done easily. 🙂 Apologies if I'm wrong.
11-29-2009 09:31 AM - edited 11-29-2009 09:32 AM
RingText.Text is the incorrect property if you want all of the strings. You want Strings[].
Turn ON context help. As you scroll through the properties, the help window will give you a description.
p.s. Just showing the image of a front panel of a VI is pretty much next to worthless in trying to fix a coding problem.
11-29-2009 09:32 AM
Using the property 'Strings []' and index array, search array.
Felix
11-29-2009 10:17 AM
I do think that I'm making things more complicated than it should be. Anyway, I've attached what I've done so far. I'm using ring control inside an array which the number of ring control inside array would be visible according to the user input. I used String[], but that won't save the selected value that's chosen; but instead, that saves every single option that my ring control has. I tried Index Array, but it gives me array element conflict. My guess is that I mixed up arrays and try to connect array to array which just won't work. I also tried using enum instead of ring (which works once, but gives me errors after that) because the values that I use in ring is gotten from the previous user input. I'm hoping that I'm making a lot of sense here. 🙂
11-29-2009 12:06 PM
If you are using sequential values in the Text Ring, you can simply do this.
11-29-2009 12:38 PM