12-27-2007 01:12 PM - edited 12-27-2007 01:13 PM
12-27-2007 01:46 PM
I just tried it in LV8.5, and the bug is still there. I never used the Edit Format String option before. I just simply use the text tool and edit the constant itself.
Even if you change the view to Normal Display, the bug still shows up. I changed the view to Normal, used the Edit Format String function, and then changed the view back to \ codes, and the double slashes showed up.
12-28-2007 12:14 PM
Hi Matthew and tbob,
This is actually expected behavior since '\' is used to display special characters in format strings. The text entered in the Edit Format String and Edit Scan String dialog boxes is as if you had entered the format string with Normal Display selected. Changing to '\' Codes Display shows the backslash representation of that text, adding the extra backslash since "\\" is the code used to display the backslash character.
You'll see the same behavior even if Edit Format String and Edit Scan String aren't used. If the format string appears as "Hello\s%d\r\n" under Normal Display, it will appear as "Hello\s%d\\r\\n" under '\' Codes Display. The resulting string and output should be the same with or without the second backslash. If you search for "backslash codes display" in LabVIEW Help, you will find the topic "Backslash ('\') Codes Display" which shows an example of how the backslash character is represented in both display modes.
Thanks for the feedback - it's always appreciated.
12-28-2007 12:23 PM - edited 12-28-2007 12:26 PM
12-28-2007 02:05 PM
12-28-2007 02:33 PM
12-28-2007 02:49 PM
Hi Matthew,
One possible workaround could be to locate the error using Edit Format String or Edit Scan String but then hit Cancel instead of OK. This will leave the format string unchanged, allowing you to edit the string constant on the block diagram once you know where the error is. Sorry for the inconvenience and frustration.
I will post any updates that I receive from R&D.
01-10-2008 04:00 PM
02-22-2008 08:26 AM
02-22-2008 08:33 AM