LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

table selection if table is inside a tab

Hi
 
I need to use SetTableSelection function to show which line is currently selected and I have a strange behaviour if the table is inside a tab. It work properly if I put the table in the same panel but outside the tab control.
I cath the followin g error message at running : NON-FATAL RUN-TIME ERROR:   "TestTable.c", line 66, col 5, thread id 0x00000F04:   Library function error (return value == -10 [0xfffffff6]). The control is not the type expected by the function
Do you have any idea ?
 
(For information I use CVI 8.5.)
0 Kudos
Message 1 of 2
(2,910 Views)

Hi Helen,

I suppose you are using the wrong panel handle as the first parameter of the SetTableSelection function. You should not pass the panel handle of the panel containing the tab control. Use GetPanelHandleFromTabPage to obtain a panel handle for the tab page containing the function, and use this handle in the SetTableSelection function.

0 Kudos
Message 2 of 2
(2,909 Views)