LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vertical string concatination

Hello,

 

I have a simple question, but I cannot find the answer...

 

I have three strings: string1, string2, and string3.

 

I used the concatinate strings function to obtain a concatinated string that reads:

string1string2string3

 

How do I get this to read:

string1

string2

string3

 

???

 

I have tried to insert newline characters and the like, but that has not worked.

 

Thanks.

 

0 Kudos
Message 1 of 3
(2,066 Views)

I found what I was looking for.  I changed the display mode of the string constants from 'Normal' to '\Codes Display', and the output string now reads the way I want.  

0 Kudos
Message 2 of 3
(2,060 Views)

I am assuming you are referring to the fact that you had a string constant and you entered the text "\n" in it while it was in Normal display mode. As you discovered, that simple means a string that has 2 characters: the character "\" and the character "n". Why don't you just use the New Line and End of Line constants that are already available in the String palette?

0 Kudos
Message 3 of 3
(2,054 Views)