04-27-2023 08:06 AM
I believe this bug exists in other versions of LabVIEW, but still it is a bug and I thought I'd mention it while this beta is open.
If you drop a format into string function, then wire a string constant to the Format String, which uses a \ style, then the values in it won't be preserved, if you use the Edit String Format window. Here is an example:
Here I have two inputs for a numeric and string, with a tab between them. If I right click the format into string and go to Edit Format String, and then check Use Minimum field width of 0 on the numeric, I end up with this:
Here it added an additional \ which is an escape character meaning I no longer have a tab between the inputs. The Edit Format String dialog should not add this additional character.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-27-2023 11:08 AM - edited 04-27-2023 11:09 AM
I'm not sure this is actually a bug. Your two strings result in the same output.
04-27-2023 11:22 AM - edited 04-27-2023 11:23 AM
I'm very confused, but you are right. This must be some weird thing with the format into string function behaving differently then I expected. If the normal display shows "\t" I expect it to display a "\t" not a tab.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-04-2023 03:46 PM - edited 05-04-2023 03:47 PM
@Hooovahh wrote:
I'm very confused, but you are right. This must be some weird thing with the format into string function behaving differently then I expected. If the normal display shows "\t" I expect it to display a "\t" not a tab.
Nope. The Format into String function had this since a long time. I considered it more a feature than a bug, trying to work for people even if they do not know about backslash code display modes.
Yes it is kind of inconsistent but I have not yet come across a case where I would have needed the literal backslash here.