home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / dbms_mag / 9106 / fixfox / fixfoxpo.doc next >
Text File  |  1991-02-09  |  6KB  |  150 lines

  1. FixFoxPO, (c) 1991 by P.L. Olympia, Platinum Software Int'l
  2. ──────────────────────────────────────────────────────────────────────
  3.  
  4.  
  5. 1.0 SOME BACKGROUND PLEASE, MAESTRO
  6.  
  7. Many people damage their FoxPro .dbf files (usually through ungraceful
  8. exits from application programs) to such an extent that FoxPro disowns
  9. the files with the heart-stopping message:
  10.  
  11. 'Not a Fox Database.'
  12.  
  13. What do you mean, not your database? You gave birth to this baby, baby!
  14. Oh, well. I can go on and on and tell you why FoxPro does that but this
  15. may not be the time to bend your ear.
  16.  
  17. Actually that message usually happens due to one or both of the
  18. following:
  19.  
  20. 1.  The signature byte (byte 0) somehow is no longer 03H (no memo field)
  21.     or F5H (.dbf has memo fields). Naturally, that can be fixed easily
  22.     with DEBUG, Norton, or a similar program.
  23.  
  24. 2.  There are damaged records in the file, and FoxPro (for whatever
  25.     reason) refuses to open the file.
  26.  
  27. Most people get around the second problem by USEing the file in
  28. FoxBASE+, then writing it back. That works but you should be aware that
  29. FoxBASE+ may do something else to the file--like copy good records
  30. into the bad or damaged records. Usually, that is not what you want
  31. because you would unwittingly get duplicate records. In this situation,
  32. you are better off using dBASE III PLUS (despite what you might have
  33. heard, it is *NOT* public domain <g>).
  34.  
  35. But what if you don't have dBASE III or FoxBASE+?
  36.  
  37. Well, now you have ... ummm ... FixFoxPO.
  38.  
  39.  
  40. 2.0  WHAT IS FIXFOXPO?
  41.  
  42. FixFoxPO (rhymes with Tic-Tac-Toe) patches your FoxPro .dbf file that
  43. FoxPro disowns with the message 'Not a Fox Database.' After the program,
  44. patches the file, FoxPro will once again recognize the file as its own.
  45.  
  46. You run FixFoxPO from DOS. You don't need FoxPro to use it. Although it
  47. "knows" you have damaged records in the file, FixFoxPO will not attempt
  48. to fix the damaged records.  It was designed to be a specialist of a
  49. program--it does ONLY one thing--patch the bad file enough so that
  50. FoxPro will open it and allow you to use it again.
  51.  
  52. Clearly, as soon as you get the file USEd in FoxPro you should look at
  53. the last few records in the file, as one or more of those would almost
  54. certainly need repairing.
  55.  
  56. The program needs less than 1K of additional disk space to do its thing,
  57. so please don't run it on a disk that has 0 byte left.
  58.  
  59. I have included a damaged file (from one of our field offices) called
  60. FixMe.dbf for you to practice on. Record 261 of this file is corrupt,
  61. causing FoxPro to disown it.
  62.  
  63.  
  64. 3.0  SYNTAX AND OUTPUT
  65.  
  66. Run the program from the DOS command line with the following syntax:
  67.  
  68.       FixFoxPO <dbfname>
  69.  
  70. where <dbfname> is the name of the .dbf file you want patched.  You may
  71. leave out the .dbf file extension.
  72.  
  73. The program does only what it is designed to do. If your file's
  74. signature byte is corrupt, it will tell you with the message:
  75.  
  76.   'FixFoxPO warning: This file doesn't look like a FoxPro .dbf to me.'
  77.  
  78. and will continue without repairing the signature byte.
  79.  
  80. If your file really is not damaged or has a different kind of record
  81. damage, it gives you this message:
  82.  
  83.   "Hmmm. This file damage is different than what I fix.
  84.    I'm not touching this baby. Sorry."
  85.  
  86.  
  87. 4.0  DISTRIBUTION POLICY
  88.  
  89. The FixFoxPO package includes:
  90.  
  91.  o      FixFoxPO.Exe
  92.  o      FixFoxPO.Doc (this file)
  93.  o      FixMe.dbf (a corrupted FoxPro file for you to practice on)
  94.  
  95. They are copyrighted by Platinum Software International but may be
  96. freely distributed for non-commercial use only and must be distributed
  97. as a package containing all files unmodified.  Use at your own risk.
  98. It works for me.
  99.  
  100. *WARNING*: The program alters your .dbf file (you want it to be well,
  101. don't you?) so *PLEASE* work only on a copy.
  102.  
  103. I will be happy to hear of any problems or requests that you may have,
  104. but I won't promise to do anything more because of my busy schedule.
  105.  
  106.  
  107. 5.0  NOW, A WORD FROM YOUR SPONSOR
  108.  
  109. Platinum Software International of North Potomac, Maryland conducts
  110. in-house training and seminars and develops custom Dbase and network
  111. applications and utilities.  We market:
  112.  
  113. 1. FRX2PRG, a DOS utility to convert a report (.frx) designed with FoxPro's
  114. report writer into the equivalent .prg which you can modify, compile,
  115. port to other Dbase family products or use as a learning tool for
  116. writing reports or Dbase programs. (Available since 12/90). A version
  117. for FoxPro 2.0 will be released as soon as FP 2.0 is released.
  118.  
  119. 2. MEMOUTIL, a collection of utilities for manipulating Dbase family memo
  120. fields, including those of dBASE III+, dBASE IV, FoxPro, FoxBASE+,
  121. Clipper, dBXL and QuickSilver (coming soon to your favorite software
  122. store).
  123.  
  124. 3. APIPAK, a collection of programmer's API utils for FoxPro 2.0.
  125. Anticipated release, 3Q 1991.
  126.  
  127. Looking for an advanced book on Dbase for you, your programmers or for
  128. use as a textbook?  Check out "Developing FoxPro Applications (with
  129. Multiuser Techniques)" by P. L. Olympia and Kathy Cea, Addison-Wesley.
  130. The book has the file structure of most FoxPro files, including  .frx,
  131. .lbx, .dbf, .fpt and .idx.  There is a disk that can be ordered
  132. separately, containing not only all the programs and sources described
  133. in the book but additional programs and utilities for Dbase and networks
  134. not published in the book. (DmpIdxPO, for example).
  135.  
  136. For more information, leave a message to Sysop at the following TWO
  137. BBSs:
  138.  
  139.   Darwin BBS, 301-251-9206, 1200 to 19200 bps
  140.   TCP BBS:    301-926-8841, 1200, 2400 bps,
  141.  
  142.   or write to:
  143.  
  144.   Platinum Software International
  145.   17 Thorburn Road
  146.   North Potomac, MD  20878
  147.  
  148. Enjoy, and may your handle never be transgressed, nor your buff dirtied.
  149.  
  150.