LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

\r\n with format into string?

A very minor point, you don't actually need to switch the format string field to '\' Codes Display in order for the backslash codes to work.

If you type "%s\r\n%s\r\n%s\r\n%s" in the Normal Display you get the same result (if you then switch to '\' Codes display, every "\" turns into "\\").

 

So either

MIG_0-1619987481395.png

or

MIG_1-1619987510432.png

will work.

0 Kudos
Message 11 of 12
(464 Views)

@MIG wrote:

A very minor point, you don't actually need to switch the format string field to '\' Codes Display in order for the backslash codes to work.

If you type "%s\r\n%s\r\n%s\r\n%s" in the Normal Display you get the same result (if you then switch to '\' Codes display, every "\" turns into "\\").

 

So either

MIG_0-1619987481395.png

will work.


That's true for the "format string" input to the "Format into String" node. The Format into String node processes the string the same for literal backslash codes as well as the according backslash escaped code.

 

It's not generally true for any other string constants or controls.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 12 of 12
(457 Views)