Thank you very much Leonardo.<div><br></div><div>No, it didn't work.</div><div><br></div><div>Manuel<br><br><div class="gmail_quote">2012/7/5 <span dir="ltr"><<a href="mailto:lami@gis3w.it" target="_blank">lami@gis3w.it</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Manuel,<br>
<br>
Try:<br>
<br>
case when "COVER" = 'A' THEN "NEW_COVER" = 1 ELSE "NEW_COVER" = 2 END<br>
<br>
Best,<br>
<br>
Leonardo Lami<br>
<br>
<br>
Gis3W<br>
e-mail: <a href="mailto:lami@gis3w.it">lami@gis3w.it</a><br>
Cell: 349 1310164<br>
Web: <a href="http://www.gis3w.it" target="_blank">www.gis3w.it</a><br>
<br>
<br>
<br>
On Thu, 5 Jul 2012 09:26:41 -0600, Manuel Spínola <<a href="mailto:mspinola10@gmail.com">mspinola10@gmail.com</a>><br>
wrote:<br>
<div class="im">> Dear list members,<br>
><br>
> I am using the field calculator in 1.8.0 (Mac OS)<br>
><br>
> I am creating a new field (column) called NEW_COVER and I want to assign<br>
a<br>
> value of 1 to the value A of the existing field (column) Cover and 0 to<br>
the<br>
> value B.<br>
><br>
> Field: Cover<br>
> Values: A, B<br>
><br>
><br>
> In the Expression window I have:<br>
><br>
> 'A' = 1<br>
><br>
> But when I click OK, I don't get the result that I was expecting, to<br>
have a<br>
> value 1 on the new field NEW_COVER.<br>
><br>
> What I am doing wrong?<br>
><br>
> Best,<br>
><br>
> Manuel<br>
</div>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><b>Manuel Spínola, Ph.D.</b>
<br>
Instituto Internacional en Conservación y Manejo de Vida Silvestre
<br>
Universidad Nacional
<br>
Apartado 1350-3000
<br>
Heredia
<br>
COSTA RICA
<br>
<a href="mailto:mspinola@una.ac.cr" target="_blank">mspinola@una.ac.cr</a>
<br>
<a href="mailto:mspinola10@gmail.com" target="_blank">mspinola10@gmail.com</a>
<br>
Teléfono: (506) 2277-3598
<br>
Fax: (506) 2237-7036
<br>
Personal website: <a href="https://sites.google.com/site/lobitoderio/" target="_blank">Lobito de río</a>
<br>
Institutional website: <a href="http://www.icomvis.una.ac.cr/" target="_blank">ICOMVIS</a><br>
</div>