Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
It’s World Statistics Day! To honor the theme of the day, the JMP User Community is having conversations about the importance of trust in statistics and data. And we want to hear from you! Tell us the steps you take to ensure that your data is trustworthy.
How use Substitute for Escape Sequences in Double Quotes?
Nov 27, 2012 9:01 AM(2366 views)
How to substitute a literal "escape sequence" within a double quoted string? Problem I'm having is that JMP always wants to evaluate the "escape sequence" and not give me its literal character representation:
myStr = "C:\temp\myfile.csv";
What I want:
myStr = "C:\!\temp\!\myfile.csv";
The following methods don't work or at least don't appear so when I check them in the Log window (wonder, is that my problem maybe, that the Log window always evaluates?):
myStr = Substitute(myStr,"\","\!\"); ==>doesn't work as it evaluates "\!\" and turns it back into a "\"
myStr = Substitute(myStr,"\","\" || "!" || "\"); ==>doesn't work as it evaluates this again and gives me double "\!\" essentially