11-26-2009 01:35 PM
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.
Solved! Go to Solution.
11-26-2009 11:18 PM
11-30-2009 09:41 AM - edited 11-30-2009 09:43 AM
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