|
From: SourceForge.net <no...@so...> - 2008-02-27 04:39:46
|
Feature Requests item #1901734, was opened at 2008-02-26 00:32 Message generated for change (Comment added) made by a1s You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=746846&aid=1901734&group_id=140566 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Delete Fields Initial Comment: Not sure if anyone is working on this still, but it would be useful to be able to delete fields from a dbf file. I looked through the source files and only saw addFields and delete records methods...no delete fields. ---------------------------------------------------------------------- >Comment By: alexander smishlajev (a1s) Date: 2008-02-27 06:39 Message: Logged In: YES user_id=8719 Originator: NO there is no way to delete a piece of data in the middle of a file other than copy all remaining data to a new file. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2008-02-26 23:17 Message: Logged In: NO I was hoping to write a python script that i could run on hundreds of files, removing the undesired fields from each file. Instead of copying all the data I want into a new file...for one file, yea, that's fine, but not looping over hundreds. ---------------------------------------------------------------------- Comment By: alexander smishlajev (a1s) Date: 2008-02-26 09:24 Message: Logged In: YES user_id=8719 Originator: NO .addField() works only while the dbf is empty (no records added) and serves to create the structure from scratch. what would be the purpose of field deletion in that context? what you need is just create new file without unwanted field and copy data - that's pretty trivial. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=746846&aid=1901734&group_id=140566 |