LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ClearListCtrl & DeleteListItem- function not OK ??

Hello
I am using "ClearListCtrl " to free a list control, but after clearing it I cannot populate it anymore
in the same instance of my program.
After restarting it, it works, but also for first time only.
The same thing happens if i use "DeleteListItem(PANEL, PANEL_tag_list, 0, -1); ".
Am I doing something wrong?
0 Kudos
Message 1 of 6
(3,609 Views)

Hello Snoopy,

Can't tell what you're doing wrong. Would it be possible to give us some more information about the source code? I suppose you use the InsertListItem function to populate the list control? Do you get any errors when using the ClearListCtrl , DeleteListItem or InsertListItem functions (you can check this by declaring a variable that the function can set. e.g. error = DeleteListItem (PANEL, PANEL_tag_list, 0, -1);, and then check if error is set to zero)?

0 Kudos
Message 2 of 6
(3,610 Views)
That "PANEL" looks suspicious. Is it really the variable for the panel handle returned by LoadPanel?
0 Kudos
Message 3 of 6
(3,600 Views)
Hello
PANEL is actually the name asigned by CVI, I had no reason to change it.
So I continued with that name, as far as I know it is not a key word.
0 Kudos
Message 4 of 6
(3,580 Views)
Hello, problem solved, thanks for the quick reply.
Nice day
0 Kudos
Message 5 of 6
(3,573 Views)
Hi disregard the last post, problem was solved.
Thanks
0 Kudos
Message 6 of 6
(3,571 Views)