For example, i want to pass string:
dpSet("$DP.CtrlPanel.Deblock", 0);
I'm try this:
"dpSet("""+$DP+".CtrlPanel.Deblock"", 0);"
"dpSet(\\""+$DP+".CtrlPanel.Deblock\\", 0);"
"dpSet('"+$DP+".CtrlPanel.Deblock', 0);"
"dpSet("+chr(34)+$DP+".CtrlPanel.Deblock"+chr(34)+", 0);"
and even "dpSet(#"+$DP+".CtrlPanel.Deblock#, 0);" with postprocess strreplace(, "#", "\\"");
in result i have bad string without quotes or with needless symbols...
Please, give me solution.
How to pass double quotes in the script $-parameter?
- vladimir
- Posts:25
- Joined: Thu Jan 23, 2014 1:34 pm
How to pass double quotes in the script $-parameter?
- funkey
- Posts:85
- Joined: Mon Dec 27, 2010 1:11 pm
Re: How to pass double quotes in the script $-parameter?
Why double quote? Try this:
dpSet($DP + ".CtrlPanel.Deblock", 0);
dpSet($DP + ".CtrlPanel.Deblock", 0);
- vladimir
- Posts:25
- Joined: Thu Jan 23, 2014 1:34 pm
Re: How to pass double quotes in the script $-parameter?
I asked the wrong question. I pass this string as $-parameter to panel.
And result of
dpSet($DP + ".CtrlPanel.Deblock", 0);
is
dpSet(myDP.CtrlPanel.Deblock, 0);
But i need string
dpSet("myDP.CtrlPanel.Deblock", 0);
for execScript function.
And result of
dpSet($DP + ".CtrlPanel.Deblock", 0);
is
dpSet(myDP.CtrlPanel.Deblock, 0);
But i need string
dpSet("myDP.CtrlPanel.Deblock", 0);
for execScript function.