03-28-2012 03:37 AM
this problem makes me headache.
I am new to labview, when a table shows some data. many rows and column. how can delete on row which I selected. the other rows are remain no change.
I really need help.thanks in advance. It is better to attach the program.my labview is 2009
Solved! Go to Solution.
03-28-2012 03:48 AM
Instead of table use the Multicolumn list box so when you click any row you will get that index wire the index to the delete from array the selected row will be deleted.
03-28-2012 04:25 AM
Hi,
You can do it with a table control as well. Check out the attached VI. To delete a row, Run the VI, just right click the row and click "Delete Row". To get back the default values, click reinitialize.
Reards,
NitZ
(Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved;))
03-28-2012 04:37 AM
Hi NitzZ:
thanks very much! can u motified the program for me, this program for user, I want to click the clear button to delete the selected row rather right click.
thanks very much!
03-28-2012 04:50 AM
That kind of thing won't work with Table thats why I suggested you to go for Multicolumn list box. You can make it simple.
Good Luck
03-28-2012 05:07 AM
Hi,
Check the attached VI. I am not sure if this is the best way to do it or not. As Anand has suggested, multicolumn listbox is also a good alternative.
Regards,
Nitz
(Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved;))
03-28-2012 09:10 PM
Thanks a lot. I still have a problem. If I want press clear button can delete the selected row and I also want to press Add button to add data into the multiculomn listbox,how can I do? use event structure? I really do not know! can you please help me? if you can ,insert the block diagram for me , I really appreciate.
Thanks very much
03-28-2012 09:33 PM
If it is only add and delete event structure not required you can use case structure.
See that attached example.
05-02-2013 02:18 AM
I believe he asked for a solution for a Table control, not for Multicolumn Listbox. Your solution looks much more efficient than the other multicolumn solution that was suggested here though...
Regards and good luck..