home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!usc!howland.reston.ans.net!paladin.american.edu!auvm!QMRELAY.MAIL.CORNELL.EDU!TOM_SCOTT
- Message-ID: <DBASE-L%93011205571126@NMSUVM1.BITNET>
- Newsgroups: bit.listserv.dbase-l
- Date: Tue, 12 Jan 1993 07:58:57 -0500
- Sender: "Discussion on the use of the dBase language and related
- dialects" <DBASE-L@NMSUVM1.BITNET>
- From: Tom Scott <Tom_Scott@QMRELAY.MAIL.CORNELL.EDU>
- Subject: Re: Help Preserve Deleted Re
- Lines: 32
-
- RE>Help Preserve Deleted Recor
- >Im having a Cheese of a time trying to preserve deleted records
- >when appending from one file to another. The conversion program
- >Ive written modifies a DBF file slighlty (the odd field is added,
- >or subtracted). Therefore I append into my new structure. But if
- >I do it with Set Deleted off, the deleted records pass over, but
- >lose their deleted status. If I do it with Set Deleted On, I lose
- >the deleted records altogether. How do I preserve deleted status
- >when appending ?
- >
- >Any thoughts ?
-
- One is by using a 1-character flag field in your DBF. Then use
- the folowing in your conversion program:
-
- SET DELETED OFF
- REPLACE ALL FLAG WITH "X" FOR DELETED()
- .
- .
- . && YOUR APPEND ROUTINE
- .
- .
-
- Then in your new DBF:
-
- DELETE FOR FLAG="X"
-
- Just a thought.............! :-)
-
-
- Thomas Scott, Systems Manager, College of Engineering
- Cornell University, Carpenter Hall Annex, Ithaca, NY 14853
-