LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string constant carriage return (\r)

I have checked the forum for similar questions, but none addresses what I am trying to find.
 
Does anyone know of a way to put a \r (carriage return character) into a string constant and have the CR hex value be embedded into the string?
 
So far, the only way that I have been able to do this is by using the "Concatenate String" VI and putting a CR from the string pallete between my two strings.
 
It would be much easier if I could just make a string constant terminal have the CR in it.
 
Any ideas are appreciated.
 
0 Kudos
Message 1 of 3
(3,407 Views)
I may be confised but you can just drop a string constant right-click on it and select '\' codes display anbd enter the \r in it.  If you then want the hex ciew righ-click and select hex view.  The hex value is 0D so you could have just started there also.
0 Kudos
Message 2 of 3
(3,402 Views)

Okay, this is frustrating.

I would swear that the last time that I tried using a string constant with a CR in it for input to column headers in a List Box that it wouldn't work.

Now, the simple way of doing it is working as expected.

Thanks.

 

0 Kudos
Message 3 of 3
(3,392 Views)