08-09-2016 04:14 AM
I was working with a library that uses some strings as hardware descriptions to populate menu item tags and names.
Soon I encountered an error and after some debug I found that "Insert Menu Items.vi" truncates the item tag if it ends with a space.
I set the strings as "Codes Display" to point out this behaviour.
You can see that, while "item tags in" and "Item name" have an ending "\s", "item tags out" has not the final "\s"
I suppose that it is not the best practice to use such strings as tags, but I wonder if is this the desired behaviour?
08-12-2016 08:24 AM
Hi AlbertoZonato,
I think that the reason is that \s is a backslash code, here some documentation:
https://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/backslash_codes_display/
http://forums.ni.com/t5/LabVIEW/Is-the-backslash-a-printable-character-in-format-string/td-p/3080563