Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically select a list box item

we programatically created the list box and are trying to programatically set a default selected item. We have tried these three things and can not achieve our objective:       
SetCtrlIndex (ch1Tab, CH1_BOARDS1, 0);
SetCtrlVal (ch1Tab, CH1_BOARDS1, 1);
SetCtrlAttribute (ch1Tab, CH1_BOARDS1, 0);
0 Kudos
Message 1 of 2
(3,053 Views)
Try with
SetCtrlAttribute (tmpH, ctrl, ATTR_DFLT_VALUE, 0);

Roberto


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,053 Views)