LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remove select line from a table

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(2,927 Views)
Solution
Accepted by topic author Francis321

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.

Justin D
Applications Engineer
National Instruments
http://www.ni.com/support/
Message 2 of 4
(2,886 Views)

@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.

Richard






Message 3 of 4
(2,879 Views)

Hi

 

Both solution work! Thank you very much! I will use the table control solution.

 

Francis

0 Kudos
Message 4 of 4
(2,868 Views)