LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

SetTableCellVal

Please see the following  lines of code
 
int nestnom;
InsertTableRows (panelHandle1, PANEL_2, -1, 1,VAL_USE_MASTER_CELL_TYPE);
GetNumTableRows (panelHandle1, PANEL_2, &numRows); 
SetTableCellVal (panelHandle1, PANEL_2, MakePoint(nestcol, numRows), nestnom); 
 
I get an error : found int ,expected pointer to char
 
I think when i use VAL_USE_MASTER_CELL_TYPE I should be able to use  any data types.
Can anybody help me?
0 Kudos
Message 1 of 2
(3,371 Views)
When yu use VAL_USE_MASTER_CELL_TYPE, the data type of newly created individual cells is determined by the column type and attributes, so if the default type for that particular column is string, you cannot fill it wih a numeric value.
There is no cell that can accept indifferently strings and numeric values: you can hold both data types in a single cell, but you must set the appropriate cell type prior to fill it.


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 2
(3,366 Views)