home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / bit / listserv / dbasel / 1448 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.4 KB  |  44 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!usc!howland.reston.ans.net!paladin.american.edu!auvm!QMRELAY.MAIL.CORNELL.EDU!TOM_SCOTT
  3. Message-ID: <DBASE-L%93011205571126@NMSUVM1.BITNET>
  4. Newsgroups: bit.listserv.dbase-l
  5. Date:         Tue, 12 Jan 1993 07:58:57 -0500
  6. Sender:       "Discussion on the use of the dBase language and related
  7.               dialects" <DBASE-L@NMSUVM1.BITNET>
  8. From:         Tom Scott <Tom_Scott@QMRELAY.MAIL.CORNELL.EDU>
  9. Subject:      Re: Help Preserve Deleted Re
  10. Lines: 32
  11.  
  12.      RE>Help Preserve Deleted Recor
  13. >Im having a Cheese of a time trying to preserve deleted records
  14. >when appending from one file to another. The conversion program
  15. >Ive written modifies a DBF file slighlty (the odd field is added,
  16. >or subtracted). Therefore I append into my new structure. But if
  17. >I do it with Set Deleted off, the deleted records pass over, but
  18. >lose their deleted status. If I do it with Set Deleted On, I lose
  19. >the deleted records altogether. How do I preserve deleted status
  20. >when appending ?
  21. >
  22. >Any thoughts ?
  23.  
  24. One is by using a 1-character flag field in your DBF.  Then use
  25. the folowing in your conversion program:
  26.  
  27. SET DELETED OFF
  28. REPLACE ALL FLAG WITH "X" FOR DELETED()
  29.  .
  30.  .
  31.  .  && YOUR APPEND ROUTINE
  32.  .
  33.  .
  34.  
  35. Then in your new DBF:
  36.  
  37. DELETE FOR FLAG="X"
  38.  
  39. Just a thought.............!   :-)
  40.  
  41.  
  42. Thomas Scott, Systems Manager, College of Engineering
  43. Cornell University, Carpenter Hall Annex, Ithaca, NY  14853
  44.