11-09-2009 02:41 PM
If you have excluded lines and you try to save the file, CVI does a popup trlling you to resolve the exclusion. One option is to comment out the excluded lines, and the CVI editor hacks in a C99 / C++ style "//" line comment for eachof the excluded lines.
But, if you've done this and then want to include these lines and undo the commenting, how do you do it except for manually uncommenting each line?
Other IDE's can do this, I don't imagine it would be terribly hard to implement if there isn't some way to do it now that I haven't tumbled upon ...
Menchar
11-10-2009 09:52 AM
Hi Menchar,
What version of CVI are you using? I am having problems recreating this issue, as far as I can tell, you should be able to save your code with parts excluded with out issue. Maybe you could post an example of the type of code that is causing this error?
Thanks
Scott M.
11-10-2009 10:48 AM
I am using an external compiler, and if I try to compile after making changes that I haven't saved, it does a popup saying I need to save first. If I choose save, if I then have excluded lines, it does another popup and says I have to resolve the excluded lines.
One option is to comment them, and CVI does it automatically then, putting // in front of each excluded line.
At some later point, when I want to use the previously excluded (but now commented) lines, I don't see any way to automaticcaly uncomment the lines that CVI commented for me on my behalf.
Menchar
11-11-2009 01:38 PM
Hi Menchar,
Sorry I didn't quite get your issue the first time, I get it now.
Unfortunately there is no feature is CVI to automatically uncomment sections of your code, I do understand that this would be useful so I will submit it as a product suggestion.
I hope uncommenting your code manually isn't to much of an issue.
Thanks
Scott M
11-12-2009 02:53 AM - edited 11-12-2009 02:59 AM
hi,
before NI add this feature to IDE,you can use "Find and repleace dialog"
specialy with "regular expresion" and "selected text only options" checked on
you still need to select text manualy, but this relative easy compared to manual editing 🙂
and you have control what section will be uncommented when multiple in one file exist
Dialog settings:
Find:^//
repleace:
P.S. string "^//" cause to repleace only string "//" at start of line so no other coments will be deleted
11-13-2009 01:44 PM
I use RE's all the time.
But I shouldn't have to hack out an RE every time I want to uncomment a block of statements.
Other IDE's do this as a matter of course, e.g. Visual Studio.