home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!OCDIS01.TINKER.AF.MIL!JOHNBOYD
- Return-Path: <johnboyd@ocdis01.tinker.af.mil>
- X-Orig-Date: Tue, 12 Jan 1993 09:25:24 GMT
- X-Orig-From: I.Bowes%uk.ac.southampton%SOTON.AC.UK@TECMTYVM.MTY.ITESM.MX
- X-Orig-Message-Id: <9301120937.AA15470@ocdis01.tinker.af.mil>
- Message-ID: <9301121431.AA16477@ocdis01.tinker.af.mil>
- Newsgroups: bit.listserv.dbase-l
- Date: Tue, 12 Jan 1993 08:31:42 -0600
- Sender: "Discussion on the use of the dBase language and related
- dialects" <DBASE-L@NMSUVM1.BITNET>
- From: "John Boyd;LAHDI;" <johnboyd@OCDIS01.TINKER.AF.MIL>
- Subject: Re: Help Preserve Deleted Records
- Lines: 24
-
- In your message of 12 Jan 1993 at 0337 CST, you write:
- > Hi all,
- >
- > I'm having a Cheese of a time trying to preserve deleted records
- > when appending from one file to another. The conversion program
- > I've written modifies a .DBF file slightly (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 ?
- >
- One solution that I used once was to add another field 'MARK' @ the
- beginning of the database structure and put a character in mark if
- the record was deleted. Then I recalled all the records, did whatever
- manipulation I had to do, then marked for deletion those records that had
- MARK set, then cleared the MARK field. All you've really done is to 'move'
- the delete flag to a place that doesn't interfere with your commands. HTH..
-
- ----------------------------------------------------------------------------
- 'Oklahoma, where the legislature runs without a brain' - with apologies to
- Rodgers and Hammerstein
- Disclaimer: If you ask the Air Force, they'll tell you I don't know what
- I'm talking about anyway.
-