LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Balance (Ctrl-B) Bug Report

Finding closing brace doesn't work if a line continuation character is encountered before the closing brace(LabWindows/CVI 7.1.0). See attached.
0 Kudos
Message 1 of 4
(3,310 Views)
0 Kudos
Message 2 of 4
(3,309 Views)
Thanks for reporting this. I was able to reproduce the problem and we should be able to fix it for the next version.

Luis
NI
0 Kudos
Message 3 of 4
(3,273 Views)
The bug also existed in CVI 6.0.
Just a note on your example: You don't need to use a continuation character in a string in ANSI C. You can just close the quotes on one line and start a new set of quotes on the next line. ANSI C will automatically concatenate the strings.
For example:
Youe example
MessagePopup ("BUG", "Ctrl-B get confused when a line continu\
ation character is encountered!");

could be written

MessagePopup ("BUG", "Ctrl-B get confused when a line continu"
"ation character is encountered!");

Closing and reopening the quotes gives you more options on indenting, etc.
Message 4 of 4
(3,263 Views)