LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

The SetTableCellRangeVals function

Hi.

I am trying to use the SetTableCellRangeVals function.

My array has only strings and the table cells from my range, have the same type.

char Array[20000][7]={0};


InsertTableRows (My_handle, Even_TABLE, -1, Number,AL_USE_MASTER_CELL_TYPE);

SetTableCellRangeVals (My_handle, Even_TABLE,MakeRect (1, 2, Number, 1), &Array,VAL_COLUMN_MAJOR);

Where did I make the mistake?

Thanks.
0 Kudos
Message 1 of 2
(3,010 Views)
Try this..

char *Array[2000] = {"Hello", "my", "name", "is", "Foo"};

InsertTableRows (panelHandle, PANEL_TABLE, -1, Number, VAL_USE_MASTER_CELL_TYPE);

SetTableCellRangeVals(panelHandle, PANEL_TABLE, MakeRect(1,2,Number,1), Array, VAL_COLUMN_MAJOR);
Jeremy L.
National Instruments
0 Kudos
Message 2 of 2
(2,990 Views)