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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting values from table

Hi,
 
  I have a table.  Here are the things that  I want to do. 
1. Whenever somone click on a row the entire row should highlight
2. Get the values from that colomn.
 
Can someone help?
thanks
--trupti
0 Kudos
Message 1 of 3
(2,324 Views)

Hi

I made you a VI that gets you the row were the cursor exists. This might help.

Remember that Tables work exactly like 2D array.

Good luck

Tareq

Message 2 of 3
(2,313 Views)
Hello,
 
The multicolumn listbox has the property that clicking in a given row will highlight the row.  You can extract a given column using a property node to access the item names property (a 2D array of strings, just like a table) - I use the property to programmatically write the listbox elements in the attached example.  The example doesn't do anything interesting, it simply shows how to populate the listbox programmatically, and illustrates the row-selection behavior you seem to desire.
 
I hope this helps!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 3 of 3
(2,302 Views)