LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove an indicator

I designed a program in 6.0 (6.1? don't remember) a while back and I put an indicator on the UI that I ended up not using. If I simply delete it, does CVI clean up the mess it leaves behind for me, or do I need to go through and do that myself?

thanks,

John
0 Kudos
Message 1 of 4
(3,150 Views)
If you delete a control using the UI Editor, the control constant will be deleted from the .h file for your UIR. No cleanup will be done in your code. The callback (if any) will not be deleted. No references to the control (e.g. GetCtrlVal, GetCtrlAttribute) will be deleted. You'll need to do this cleanup manually.
Message 2 of 4
(3,146 Views)
Hello John,

AL is absolutely correct, but if you are concerned about whether or not the control IDs for your other controls will change, they might change according to the order you placed you controls on your UIR, but you shouldn't have to worry about that if you used the control constants declared in your UIR header file in your source code instead of hardcoding the constant values in your calls to Get/SetCtrlVal, for example.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
Message 3 of 4
(3,126 Views)
Thanks. I wrote a control program a while back for some instrumentation, and as I pretty much am learning this as I go, I was afraid to remove an indicator I thought I was going to need, but ultimately did not. Now I can go back in and clean up the UIR and code to remove this particular indicator.

-John
0 Kudos
Message 4 of 4
(3,106 Views)