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.
02-13-2014 10:12 AM - edited 02-13-2014 10:16 AM
hi,
I need help related to listbox
1. Currently I am able to select item and put into array string
Prob is
ex.
When i select item 1 then Item 1 will be create on arrayString but when I select item 2 and item 3 then arrary string displays item 2 and item 3 and item 1 will be deleted.
So please let me know how to add, append and delet from listbox to array string.
2. How to popup the listbox and allow user to add, delet or append the items in the listbox and transfer to array string
I have atatched my code. Please help me.
thanks,
chethan
Solved! Go to Solution.
02-13-2014 10:23 AM
@Mandya wrote:
hi,
I need help related to listbox
1. Currently I am able to select item and put into array string
Prob is
ex.
When i select item 1 then Item 1 will be create on arrayString but when I select item 2 and item 3 then arrary string displays item 2 and item 3 and item 1 will be deleted.
So please let me know how to add, append and delet from listbox to array string.
2. How to popup the listbox and allow user to add, delet or append the items in the listbox and transfer to array string
I have atatched my code. Please help me.
A picture doesn't really help here. You need to post the actual VI.
If you want to append, then you need some way of retrieving what data is already in there. A shift register or a local variable should work well for that.
02-13-2014 11:20 AM - edited 02-13-2014 11:21 AM
listbox has already have 10 items (strings), when i click on item the corresonding item should be selected and stored in array, my prob is when I try to add second item after adding first item the arary delets the first item and stores the second item...
I need solution in such a way that array has to allow to append , add or delete the item which is selected from the list box....
02-13-2014 11:32 AM
@Mandya wrote:
listbox has already have 10 items (strings), when i click on item the corresonding item should be selected and stored in array, my prob is when I try to add second item after adding first item the arary delets the first item and stores the second item...
I need solution in such a way that array has to allow to append , add or delete the item which is selected from the list box....
Yes, I am well aware of what your requirements are. Now show me what you have done with actual code. We are not here to do your work for you. We will help you along. But just repeating your requirements doesn't help anybody.
02-13-2014 11:44 AM
I can't disclose entire code...the above req is small part of it.......
currenlty i am able to add but not able to append or delete
02-13-2014 12:05 PM
Take a look at this code, it allows you to maintain the output array (listbox2) by moving items back and forth between listbox and listbox2. Does this help you in anyway? If not, what additional functionality do you need?
02-13-2014 12:16 PM
I have labview 2010 and not able to open this file
02-13-2014 12:17 PM
Sorry, try this:
02-13-2014 01:18 PM
thank you very much...its working
02-18-2014 09:52 AM
hi,
I have attached the VI and fails to move items from listbox to another listbox.....could you help me...
thanks,
chethan