<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Hey Denis,</font><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">By the looks of it you have the quotes in the wrong spot.  Try this:</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">eval(&quot; myvar =&#39;3&#39; &quot;)</font></div>
<div>
<font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">or </font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br>

</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">eval(&quot; myvar =\&#39;3\&#39; &quot;)</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br>

</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">- Nathan<br></font><br><div class="gmail_quote">On Thu, Feb 9, 2012 at 7:33 PM, Denis Rouzaud <span dir="ltr">&lt;<a href="mailto:denis.rouzaud@gmail.com">denis.rouzaud@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I am dealing with the same problem for a while now, can someone tells me why these commands give a syntaxerror:<br>
<br>
eval(&quot;myvar =&#39;3&#39;&quot;)<br>
<br>
or<br>
<br>
eval(&quot;myvar =\&#39;3\&#39;&quot;)<br>
<br>
I played with simple/double quotes and backslash or not.<br>
I googled this without any success...<br>
<br>
Can someone give me a hint?<br>
<br>
Thanks<br>
<br>
Denis<br>
<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote></div><br></div>