11-20-2007 03:42 PM - edited 11-20-2007 03:47 PM
11-20-2007 04:52 PM
11-21-2007 01:46 AM
11-21-2007 12:25 PM
I'm thinking I could define a dummy specifier and a dummy input %7$ and "" to allow me to get away with what I want......
I'm still not sure about the return value being an empty string when the errors occur though. For me, it should just do a concatenation and give the error. The function takes an "Initial string" input. Why should this be deleted by an error in the format function? Note also that these errors can only occur if we're feeding a control to the Format specifier. Feeding a constant checks the errors at compile-time.
12-30-2013 02:58 AM
How about this: I am building a xml-ish parser and wanted to format into string: "<\%s>". It won't work, neither if I type it by hand, nor if I use string builder. It gives you broken arrow since the whole thing is treated as exact output string and hence there is an excessive input.
Mind you, the "<%s>" format string seems to run normally.
I use LabVIEW 2011 SP1.
12-30-2013 03:53 AM
Have you tried with: <\\%s> ?
One \ cancel the %s as a formater, then two \ will give you a \ to print out.
12-30-2013 03:54 AM
When adding to a 6 year old thread, it might help if you give a bit more detail and also attach a simplified VI that shows the problem.
Thanks.
12-30-2013 03:55 AM
Use <\\%s>
12-30-2013 03:58 AM
It seems to work, thank you for your support.
Despite my problem is solved, I'd expect from the string editor to do that for me, just as it does with "%" character.
12-30-2013 04:01 AM
What is the "string editor"?
Both versions are valid statements, how is the computer supposed to guess what you want?