12-14-2010 11:17 PM
I need to show data of some rows in a table in another table with same nos of columns and main table to be disabled. Could anyone hints how to do that ? Data in table is coming from the microprocessor and purpose is user can see and modify only some data.
If anyone show me some hints it will be a great help.
Regards,
Auntu
Solved! Go to Solution.
12-14-2010 11:59 PM
If tables has exactly the same structure (i.e. number of columns and data type for each of them) the simplest way to pass data from one table to another is to pass by system clipbord using ClipboardPutTableVals and ClipboardGetTableVals
12-15-2010 11:12 PM
Roberto,
Thank you for your reply. But how to disable the original table or how to hide it from the user and again when require how to enable it ?
Regards.
12-15-2010 11:13 PM
What are other ways instead of using clipboard.
Regards.
12-16-2010 04:22 AM - edited 12-16-2010 04:23 AM
Disable a table: SetInputMode (panelHandle, controlID, 0); ('1' to re-enable it).
Hiding a table: SetCtrlAttribute (panelHandle, controlID, ATTR_VISIBLE, 0); ('1' to show it again).
These commands are valid for each control types.
To extract values from the table you can simply use GetTableCellVal or GetTableCellRangeVals: if the range of cells has the same data type you can use the second command which is faster; if cells are different (e.g. numeric and strings) you must individually address each of them. Using the clipboard does not have this limitation.