LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Bob_Schor

Allow Multi-line Format Strings in Format Into String function

Status: Already Implemented

The function should work as intended when input values are wired to Format Into String.

Allow a multi-line Format String, with Format Into String treating new lines as though \n was in Format String.  Here's an example, where the output appears as three separate lines (and the Format String also looks like three separate lines, shown on the left, with the "correct" and only "legal" way to do this shown on the right).Format String Idea.png

Not realizing this would be a problem, I just created an 11-line "content" for an INI-like file, not expecting it would "reformat" itself as a line containing 198 characters ...  Oops.

 

Bob Schor 

3 Comments
nanocyte
Active Participant

Code on the left seems to be working OK for me once I hook up the dbl inputs.

Output:

First Number = 1.000000
Second Number = 1.000000
Last Number = 1.000000
AristosQueue (NI)
NI Employee (retired)

This should work just fine as shown. If you are having problems, please contact the application engineers in the regular forums.

Darren
Proven Zealot
Status changed to: Already Implemented

The function should work as intended when input values are wired to Format Into String.