From: Mohan S. <Moh...@in...> - 2012-05-25 09:00:01
|
Hi, I am using the dbfpy2.2.5 on windows system with python 2.6.7. In dbfpy how to delete a record. I have used the below code but no use. /* db = dbf.Dbf("test.dbf") rec = db[0] rec.delete() rec.store() del rec db.close() */ After this when i Open the test.dbf file its not showing the deleted record, but when i read it using pydbf its printing the deleted record. /* db = dbf.Dbf("test.dbf") # should be 3 records, printing 4 print 'count elements: ', len(db) */ Regards, Mohan ________________________________ DISCLAIMER: This email may contain confidential information and is intended only for the use of the specific individual(s) to which it is addressed. If you are not the intended recipient of this email, you are hereby notified that any unauthorized use, dissemination or copying of this email or the information contained in it or attached to it is strictly prohibited. If you received this message in error, please immediately notify the sender at Infotech or Mai...@in... and delete the original message. |