From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-29-2011 09:49 AM
Hi all,
I have a vi that includes a "combo box", "add" and "delete" buttons. You can click the "add" button to add new value to combo box or click the "delete" button to delete a value from it. I have added 1,2,3,4,5 as an example, respectively.
When 3 was deleted, empty string placed instead of 3 (empty string is desired when delete a value).
Now, after deleting, I would like to add new value instead of the deleted value. I mean, for instance i'd like to add 3 again at the its old position (between 2 and 4).
Any idea?
Best Regards.
06-29-2011 10:05 AM
You might start running into problems since I don't think you can have multiple combo box entries which are identical. (i.e. deleting multiple entries will result in multiple empty strings which will be problematic.)
Is there a reason why you don't want to just remove the entries instead of replace them?
06-29-2011 10:12 AM
Would a Text Ring work better than a combo box?
06-29-2011 10:32 AM
Hi Taki,
You're right, i used text ring instead of combo box, text ring more useful and it's very helpful thank you!
And as you say, deleting multiple entries will be problematic, i dont notice that 😕 But it is needed that add new value instead of the deleted value.
I'll search/think something else, thank you again..
06-29-2011 10:58 AM
The main idea is, regardless of empty string and duplicates, that you get all the strings/values through a propertiy node, change some through Replace Array and put it back through another property node. 🙂
/Y