How to pass double quotes in the script $-parameter?

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
vladimir
Posts:25
Joined: Thu Jan 23, 2014 1:34 pm

How to pass double quotes in the script $-parameter?

Post by vladimir »

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.

funkey
Posts:85
Joined: Mon Dec 27, 2010 1:11 pm

Re: How to pass double quotes in the script $-parameter?

Post by funkey »

Why double quote? Try this:

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?

Post by vladimir »

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.

3 posts • Page 1 of 1