LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with InsertListItem

Solved!
Go to solution

I'm modifying a list control by using ClearListCtrl (panel,controlID) followed by a number of InsertListItem(panel, controlID,-1,<string>,<integer value>).  All of the inserted items appear in the list, and I am able to select any item.  However, no matter what item is selected, GetCtrlIndex() always returns a value of 0, and GetCtrlVal() returns the value of the first item in the list.  Any idea what could be wrong?

 

Thanks

 

Ray

0 Kudos
Message 1 of 2
(3,379 Views)
Solution
Accepted by topic author cmac1

Oops.  My mistake.  Theres a goof in my code.

 

 

0 Kudos
Message 2 of 2
(3,374 Views)