<DIV>Hi,</DIV>
<DIV> I wanna set new field value to an existing shape file which has been opened with update access, but it doesn't work, my code like this:</DIV>
<DIV> </DIV>
<DIV> OGRFeature* pFeature = pLayer->GetFeature(2); <BR> int nIdx = pFeature->GetFieldIndex("Name");<BR> pFeature->UnsetField(nIdx);<BR> pFeature->SetField( "Name", "hanJ reiver" );</DIV>
<DIV> </DIV>
<DIV> Anyone give me some advices? </DIV>
<DIV style="FONT-SIZE: 12px; COLOR: #909090; FONT-FAMILY: Arial Narrow">------------------</DIV>
<DIV>
<DIV>To the world you're little, but to a person you're the world.</DIV>
<DIV> Chen Xuexia</DIV></DIV>