home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / C / DB2TXT02.ZIP / DBF.DOC next >
Encoding:
Text File  |  1985-12-28  |  1.9 KB  |  79 lines

  1.                      Anatomy of a dBASE file
  2.                       James Bumgardner 1984
  3.  
  4. STRUCTURE FOR FILE:  EXAMPLE.DBF
  5. NUMBER OF RECORDS:   00002
  6. DATE OF LAST UPDATE: 06/20/84
  7. PRIMARY USE DATABASE
  8. FLD       NAME      TYPE WIDTH   DEC
  9. 001     CHARFIELD    C    010          
  10. 002     INT          N    004          
  11. 003     DEC2         N    004    002   
  12. 004     LOGIC        L    001          
  13. ** TOTAL **             00020
  14.  
  15. 00001  data char    126  2.23 .T. 
  16. 00002 *next rec       0  0.00 .F. 
  17.  
  18.  
  19.                      map of file EXAMPLE.DBF
  20.  
  21. OFFSET    BYTEs        EXPLANATION
  22. ======  ====        ===========
  23. 00    02        dBASE version number (?)
  24. 01    02        records (low byte)     2 records in file
  25. 02    00        records (high byte)
  26. 03    06        month        \
  27. 04    14        day         |  6/20/84
  28. 05    54        year        /
  29. 06    14        total record length (low byte)
  30. 07    00        total record length (high byte)
  31. 08            
  32. |    'CHARFIELD'    first field name (up to 11 chars)
  33. 12    
  34. 13    43        'C' a character field
  35. 14    0A        length (10)
  36. 15    D1        starting offset field address (low byte)
  37. 16    6C        (high byte)
  38. 17    00        decimal places
  39. 18
  40. |    'INT'        second field name
  41. 22    
  42. 23    4E        'N' a numeric field
  43. 24    04        offset field address (low byte)
  44. 25    DB        (high byte)
  45. 26    6C        'l' ?
  46. 27    00        decimal places
  47. 28
  48. |    'DEC2'        third field name
  49. 32
  50. 33    4E        'N' a numeric field
  51. 34     04        length (4)
  52. 35    DF        offset field address (low byte)
  53. 36    6C        (high byte)
  54. 37    02        decimal places
  55. 38
  56. |    'LOGIC'        last field name
  57. 42
  58. 43    4C        'L' a logic field
  59. 44    01        length (1)
  60. 45    E3        offset field address (low byte)
  61. 46    6C        (high byte)
  62. 47    00        decimal places
  63. 48    0D        CR (end of field data
  64. 49
  65. |            space for more fields
  66. 208
  67. 209    20        delete/eof byte (normal) 
  68. 20A    
  69. |    'data char  1262.23t'    first record
  70. 21C    
  71. 21D    2A        delete/eof byte '*' (deleted) 
  72. 21E
  73. |    'next rec     00.00f'   last record
  74. 230
  75. 231    1A        delete/eof byte EOF (end of dBASE data)
  76. 232
  77. |            junk (old records if file was PACKed)
  78. ...
  79.