LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Copy Table

Solved!
Go to solution

Hello

I would like to ask how to copy the contents of Table to another Table? What function?

0 Kudos
Message 1 of 5
(3,728 Views)
Solution
Accepted by topic author AILWSL

If all table cells are compatible, you can get values with:

  GetTableCellRangeVals (panelHandle, PANEL_TABLE, VAL_TABLE_ENTIRE_RANGE, array, VAL_COLUMN_MAJOR);

Alternatively you must copy content either in smaller subsets or cell-by-cell. See the command help for an explanation on "compatible".

To fill destination table you can use the opposite SetTableCellRangeVals command

 

The largest the area you can set (and consequently the lowest the number of operations performed on the table) the fastest will be the process.

You may have an additional improvement by hiding the table before this operation.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,720 Views)

I have just realized that a fastest method can be to use ClipboardPutTableVals and ClipboardGetTableVals to perform the same operation.

I have used it rarely, though, and I don't remember how it works with different cell types in the table.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 5
(3,715 Views)

,

Thank you for your reply, it is very useful to me


Thank you very much

0 Kudos
Message 4 of 5
(3,699 Views)

You're welcome!



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 5
(3,693 Views)