NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I handle a sting path with "\T"

Solved!
Go to solution

Hi,

I have a string path in TestStand that contains "\T" 

Example:

C:\Program Files\Test

How can I stop TestStand interpreting this as a tab return.

Many thanks,

Shane.

0 Kudos
Message 1 of 3
(4,141 Views)
Solution
Accepted by topic author ShaneDonn

See this reply

 

Use integers if you can

0 Kudos
Message 2 of 3
(4,129 Views)

If the path is in an expression literal you need to escape your backslashes (backslash is the escape character so '\t' becomes a tab character). The path you specified should be:

 

"C:\\Program Files\\Test"

 

Now if you are storing the path directly in a string or path variable and not as a literal in an expression than you should NOT double the backslashes because in that case there is no unescaping being done.

 

I'm not sure what muks is referring to with "use integers if you can".

 

Hope this helps clarify things,

-Doug

Message Edited by dug9000 on 11-30-2009 09:43 AM
0 Kudos
Message 3 of 3
(4,065 Views)