04-15-2015 11:32 AM
Is there a way to get the index of the column from a 2D array that was deleted? In my application the user has the ability to use the right-click "Delete column" option on a 2D array, but I would like to use that information to delete the same column in a different array programatically. Is this easily possible?
Solved! Go to Solution.
04-15-2015 12:13 PM
Use an Event Structure with a Value Change event for your array. There are terminals for the Old Value and New Value. You can just compare the first row to find the first value that is different. That would be the column that was deleted.
04-15-2015 01:07 PM
There is a file posted in the community documents that returns a location of a clicked array. Use it similar to the picture below.
https://decibel.ni.com/content/docs/DOC-22434
04-15-2015 01:21 PM
Two good answers but thanks aputman! I was trying to figure out how to use the right click menu event but couldn't determine how to obtain the "Delete column" option. Easy solution.