<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi!<br>
<br>
I'm trying to modify a dbf adding a new field in a python script, but I
can't.<br>
<br>
Just I can add a field in new dbf created in the same script.<br>
<br>
I tryed with:<br>
<br>
<blockquote><small>db = dbf.Dbf("../filesource.dbf",new =False,
readOnly=False)<br>
...<br>
db.addField(("PESO","N",32,8))<br>
  <br>
  </small></blockquote>
and return error:<br>
<br>
<blockquote><small>Traceback (most recent call last):<br>
  File "script.py", line 34, in <module><br>
    db.addField(("PESO","N",32,8))<br>
  File "/usr/lib/python2.5/site-packages/dbfpy/dbf.py", line 229, in
addField<br>
    "structure can't be changed")<br>
TypeError: ('At least one record was added, ', "structure can't be
changed")</small><br>
</blockquote>
<br>
I have not idea of what error I make.<br>
<br>
If someone can help me, I'll so gratefull.<br>
<br>
Thanks!
</body>
</html>