Dear Statalist,
I would like to have a local (string) with the dollar sign in it without being evaluated. I read Nick's article on backslashes, (file:///C:/Users/wb327173/Downloads/pr0042.pdf), however it seems that they are for labeling, not for local.
In Stata, it shows the dollar sign in the string as the output in Results window.
. display "\$myfile"
$myfile
How can I do that in a local? I tried some parts here, but unable to show that dollar sign in the content of the local.
local a `"\$myfile"'
dis "`a'"
local a `"\\$myfile"'
dis "`a'"
Many thanks,
Minh
I would like to have a local (string) with the dollar sign in it without being evaluated. I read Nick's article on backslashes, (file:///C:/Users/wb327173/Downloads/pr0042.pdf), however it seems that they are for labeling, not for local.
In Stata, it shows the dollar sign in the string as the output in Results window.
. display "\$myfile"
$myfile
How can I do that in a local? I tried some parts here, but unable to show that dollar sign in the content of the local.
local a `"\$myfile"'
dis "`a'"
local a `"\\$myfile"'
dis "`a'"
Many thanks,
Minh
Comment