LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to initiate new even using mouse click in the cell of a table

Hi All, I am trying to have my program to excute some code while clicking the mouse into one of the cells of a table which are already filled with string values.  I have tried "mouse enter", "mouse down" and neither of them worked.  To be specific it worked once but not the second time I click the mouse in another cell.   I used EditPos in a case structure which is accessed automatically by the "mouse" event.  The event structure was surrounded by the case structure and the case structure was surrounded by a while loop.  Could anyone see a problem in my approach?  Thanks in advance.
 
0 Kudos
Message 1 of 3
(2,489 Views)
You should not be placing an event structure inside a case statement. That does not disable the event structure. If you need to use a case statement, you should put that inside your event structure. Here's an example in LabVIEW 7.1 that uses the mouse down event and checks to see whether the edit position is new.
Message 2 of 3
(2,477 Views)
Dennis,
 
Thank you and your example worked beautifully! I will need to try out my code, it should work just as fine using the structure you suggested. Thanks again.
0 Kudos
Message 3 of 3
(2,469 Views)