NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Escape characters in variables

I have a an array of strings local variable Locals.Header. Each element should contain TAB characters, so I created these strings as they would be in expressions - where \t is a tab character after evaluation of the expression.

 

If I build a string with the STR() function from the array elements, all "\t"s appear in the print. But I need tabs. What is the reason and how to solve it?

 

Madottati

 

 

0 Kudos
Message 1 of 3
(4,014 Views)

This forum post should help you:

http://forums.ni.com/t5/NI-TestStand/TestStand-Handling-special-characters-in-expression-strings/td-...

 

However, you have an array of strings.  This is a little cumbersome, but I made a For Each Loop where I use the Unescape function for each array element.  Take a look at the attached example.

 

Pulido Technologies LLC

0 Kudos
Message 2 of 3
(3,993 Views)
Use "\\t" instead of "\t"
----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 3
(3,979 Views)