home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / lan / btfl14.arj / POL.INX < prev    next >
Text File  |  1992-05-17  |  3KB  |  125 lines

  1. #
  2. #  This line, and all lines beginning with '#' are comments
  3. #
  4. #  This file will allow you to import and export data from Btrieve
  5. #  files in a variety of ways.  Since you define what fields are in
  6. #  or should be written to the ASCII comma delimited file, you can
  7. #  do some pretty neat stuff, like eliminating fields from data
  8. #  files by exporting only what you really want and importing to a
  9. #  new file the selected fields.
  10. #
  11. #  The format of the information for each field is as follows:
  12. #
  13. #  FIELD NAME=s
  14. #  BTRIEVE START=n
  15. #  BTRIEVE LEN=n
  16. #  FIELD TYPE=s
  17. #  ASCII LEN=n
  18. #  ASCII DECIMALS=n
  19. #
  20. #  'FIELD NAME' is essentially a comment for now.
  21. #
  22. #  'BTRIEVE START' is the position within the Btrieve file where
  23. #  this field is (or in the case of import, where the data should
  24. #  go).  The first position in the file is 1.
  25. #
  26. #  'BTRIEVE LEN' is the length of the field in the Btrieve fle in
  27. #  it's native format.  Note, for instance, that Btrieve DATE fields
  28. #  are 4 bytes.
  29. #
  30. #  'FIELD TYPE' is one of the following:
  31. #
  32. #                              "String"
  33. #                              "Integer"
  34. #                              "Float"
  35. #                              "Date"
  36. #                              "Time"
  37. #                              "Decimal"
  38. #                              "Money"
  39. #                              "Logical"
  40. #                              "Numeric"
  41. #                              "Bfloat"
  42. #                              "Lstring"
  43. #                              "Zstring"
  44. #                              "Unsigned Binary"
  45. #                              "Autoincrement"
  46. #
  47. #  NOTE:  Only meaningful for IMPORT is a fieldtype of IGNORE.  What this
  48. #         does is ignore the field in the ASCII comma-delimited file.  This
  49. #         allows you to import files that have fields that you do not wish
  50. #         to import.
  51. #
  52. #  ASCII LEN' is the length the field should take in the ASCII
  53. #  file.
  54. #
  55. #  ASCII DECIMALS is only meaningful for numbers.  N/A if it does not apply.
  56. #
  57. #  The ASCII output file will look something like this:
  58. #
  59. #  "Jones      ","Bob        ","404 Midstreams Road","Brick","NJ","08724"
  60. #
  61. #  In the above case, the first 5 fields might have been STRING fields,
  62. #  and the last field might have been Numeric, Decimal, or Integer.
  63. #
  64. #  Field 1
  65. #
  66. FIELD NAME=POL-PO Num
  67. BTRIEVE START=1
  68. BTRIEVE LEN=6
  69. FIELD TYPE=string
  70. ASCII LEN=6
  71. ASCII DECIMALS=N/A
  72. #
  73. #  Field 2
  74. #
  75. FIELD NAME=POL-Sequence
  76. BTRIEVE START=7
  77. BTRIEVE LEN=3
  78. FIELD TYPE=string
  79. ASCII LEN=3
  80. ASCII DECIMALS=N/A
  81. #
  82. #  Field 3
  83. #
  84. FIELD NAME=POL-SKU
  85. BTRIEVE START=10
  86. BTRIEVE LEN=7
  87. FIELD TYPE=string
  88. ASCII LEN=7
  89. ASCII DECIMALS=N/A
  90. #
  91. #  Field 4
  92. #
  93. FIELD NAME=POL-Unit Retail
  94. BTRIEVE START=17
  95. BTRIEVE LEN=5
  96. FIELD TYPE=decimal
  97. ASCII LEN=10
  98. ASCII DECIMALS=2
  99. #
  100. #  Field 5
  101. #
  102. FIELD NAME=POL-Cost
  103. BTRIEVE START=22
  104. BTRIEVE LEN=5
  105. FIELD TYPE=decimal
  106. ASCII LEN=10
  107. ASCII DECIMALS=2
  108. #
  109. #  Field 6
  110. #
  111. FIELD NAME=POL-Ord Qty
  112. BTRIEVE START=93
  113. BTRIEVE LEN=4
  114. FIELD TYPE=decimal
  115. ASCII LEN=10
  116. ASCII DECIMALS=0
  117. #
  118. #  This is just a demo.  Lots of fields follow, we just
  119. #     picked these to extract.  Note that field 6 is not
  120. #     adjacent to field 5.  The order that the fields are
  121. #     defined dictates their order in the export file, or
  122. #     in the case of imports, the fields must be defined in
  123. #     the order the fields appear in the import file.
  124. #
  125.