12-03-2011 11:01 AM
Hi
I try to find a way to remove a selected line in a text file. You can find a typical text file attach this that message.
I first try to insert the text file in combo box command using value property node but I only see the first line. I did the same with a table command and it work! Now I need to select a line and delete it. I try to use active cell property node but I always get (0,0). Why? Someone know how to do it?
Better idea to do the same task is also welcome.
LabVIEW 8,5 windows XP
Thank
Francis
Solved! Go to Solution.
12-05-2011 11:35 AM
Hi Francis,
You should try using the SelStart attribute of the table rather than the Active Cell property. Active cell is just used to set the active cell. Here is a quick modification I made to your code that will delete the selected line from the table when the delete button is pressed and output the resulting array. Hopefully this should get you pointed in the right direction.
12-05-2011 11:42 AM
@Francis321 wrote:
[...]
I first try to insert the text file in combo box command using value property node but I only see the first line.
[...]
Use Spreadsheet String to Array to convert the text to an array of lines. Use the Strings[] Property Node of the Combo Box (not the Value node) to write the lines into the Combo Box product.
12-05-2011 04:44 PM
Hi
Both solution work! Thank you very much! I will use the table control solution.
Francis