<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello everyone,<br>
<br>
I'm trying to modify the values of some selected features. I have
written this small script, but nothing happens when I run it. Is
there something that I've missed? Here is my code.<br>
<br>
<font face="Courier New, Courier, monospace"><i>lyr =
qgis.utils.iface.activeLayer()</i><i><br>
</i><i>features = lyr.selectedFeatures()</i><i><br>
</i><i><br>
</i><i>lyr.startEditing()</i><i><br>
</i><i>lyr.updateFields()</i><i><br>
</i><i>for f in features:</i><i><br>
</i><i> fid= f.id()</i><i><br>
</i><i> lyr.changeAttributeValue(fid,12,"0")</i><i><br>
</i><i> lyr.updateFeature(f)</i><i><br>
</i><i> print "elemento alterado"</i><i><br>
</i><i><br>
</i><i>lyr.commitChanges()</i></font><br>
<br>
Thanks per advance!!<br>
</body>
</html>