LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I obtain the last modified cell in a table ?

Hi,
How can I get the last modified cell in a table ?
I can get the actual selected cell with GetActiveTableCell(), but I don't
know what is the last modified cell.
I have to compute each row on a big table. But I 'd like to compute only the
row which contain the last modified cell.

Thanks.

Yvan

--

******************************
YBDesign
http://www.ybdesign.fr
******************************
0 Kudos
Message 1 of 2
(2,999 Views)
Yvan,

Every time the user changes a value in the cell you will get a EVENT_COMMIT event. The best way to keep track of the changes is to have a callback for the table control that waits for an EVENT_COMMIT. In that event the callback parameters eventData1 and 2 will tell you the cell that generated the COMMIT event. That will tell you what is the last cell that was modified.

Here is a small text from the CVI help on EVENT_COMMIT

For table events calling the control callback:
eventData1 = row of cell where event was generated. If the event affected multiple cells, such as when you sort or paste a range of cells, eventData1 is set to 0.
eventData2 = column of cell where event was generated. If the event affected multiple cells, such as when yo
u sort or paste a range of cells, eventData2 is set to 0.


Just FYI sometimes you read lod cell position in a table callback. Here is a link with some information on this and how to overcome this.

I hope this helps, let me know if you have any further quesitons.

Regards,

Juan Carlos
N.I.
Message 2 of 2
(2,999 Views)