MAKECUST.LST 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. Listing:
  2. 1 MODULE MakeCustomerDBF;
  3. 2 (* this program will create the file for Customer *)
  4. 3 FROM LowLevel IMPORT Fill;
  5. 4 FROM ModBase3 IMPORT InitDBF,OpenDBF,CloseDBF,ReadDBRec,
  6. 5 GetField,DBFieldDescriptor,DBFile;
  7. 6
  8. 7 FROM DBCreate IMPORT BuildDBF;
  9. 8 FROM SYSTEM IMPORT SIZE,ADR;
  10. 9 FROM Storage IMPORT ALLOCATE,DEALLOCATE;
  11. 10
  12. 11 VAR
  13. 12 CustomerDBF : DBFile;
  14. 13
  15. 14
  16. 15 PROCEDURE MakeDatabase();
  17. 16 VAR
  18. 17 Error : CARDINAL;
  19. 18 Desc : POINTER TO ARRAY [1..200] OF DBFieldDescriptor;
  20. ***** ^ not supported yet
  21. ***** ^ not supported yet
  22. 19 BEGIN
  23. 20 ALLOCATE(Desc, 31 * SIZE(DBFieldDescriptor));
  24. ***** ^ not supported yet
  25. ***** ^ not supported yet
  26. ***** ^ not supported yet
  27. ***** ^ not supported yet
  28. 21 Fill(Desc, 31 * SIZE(DBFieldDescriptor),0);
  29. ***** ^ not supported yet
  30. ***** ^ not supported yet
  31. ***** ^ not supported yet
  32. ***** ^ not supported yet
  33. ***** ^ not supported yet
  34. 22 MakeDescriptor( Desc^[ 1], 'CIN', 10, 0, 'C');
  35. ***** ^ undeclared identifier
  36. ***** ^ not supported yet
  37. ***** ^ not supported yet
  38. ***** ^ not supported yet
  39. ***** ^ not supported yet
  40. 23 MakeDescriptor( Desc^[ 2], 'NAMEIDX', 40, 0, 'C');
  41. ***** ^ undeclared identifier
  42. ***** ^ not supported yet
  43. ***** ^ not supported yet
  44. ***** ^ not supported yet
  45. ***** ^ not supported yet
  46. 24 MakeDescriptor( Desc^[ 3], 'NAME', 40, 0, 'C');
  47. ***** ^ undeclared identifier
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. ***** ^ not supported yet
  51. ***** ^ not supported yet
  52. 25 MakeDescriptor( Desc^[ 4], 'NOTES1', 40, 0, 'C');
  53. ***** ^ undeclared identifier
  54. ***** ^ not supported yet
  55. ***** ^ not supported yet
  56. ***** ^ not supported yet
  57. ***** ^ not supported yet
  58. 26 MakeDescriptor( Desc^[ 5], 'NOTES2', 40, 0, 'C');
  59. ***** ^ undeclared identifier
  60. ***** ^ not supported yet
  61. ***** ^ not supported yet
  62. ***** ^ not supported yet
  63. ***** ^ not supported yet
  64. 27 MakeDescriptor( Desc^[ 6], 'NOTES3', 40, 0, 'C');
  65. ***** ^ undeclared identifier
  66. ***** ^ not supported yet
  67. ***** ^ not supported yet
  68. ***** ^ not supported yet
  69. ***** ^ not supported yet
  70. 28 MakeDescriptor( Desc^[ 7], 'AMTOUT', 10, 2, 'N');
  71. ***** ^ undeclared identifier
  72. ***** ^ not supported yet
  73. ***** ^ not supported yet
  74. ***** ^ not supported yet
  75. ***** ^ not supported yet
  76. 29 MakeDescriptor( Desc^[ 8], 'LASTINV', 8, 0, 'D');
  77. ***** ^ undeclared identifier
  78. ***** ^ not supported yet
  79. ***** ^ not supported yet
  80. ***** ^ not supported yet
  81. ***** ^ not supported yet
  82. 30 MakeDescriptor( Desc^[ 9], 'YTDPURCH', 10, 2, 'N');
  83. ***** ^ undeclared identifier
  84. ***** ^ not supported yet
  85. ***** ^ not supported yet
  86. ***** ^ not supported yet
  87. ***** ^ not supported yet
  88. 31 MakeDescriptor( Desc^[ 10], 'SALESREP', 10, 0, 'C');
  89. ***** ^ undeclared identifier
  90. ***** ^ not supported yet
  91. ***** ^ not supported yet
  92. ***** ^ not supported yet
  93. ***** ^ not supported yet
  94. 32 MakeDescriptor( Desc^[ 11], 'CONTACT', 20, 0, 'C');
  95. ***** ^ undeclared identifier
  96. ***** ^ not supported yet
  97. ***** ^ not supported yet
  98. ***** ^ not supported yet
  99. ***** ^ not supported yet
  100. 33 MakeDescriptor( Desc^[ 12], 'PHONENBR', 18, 0, 'C');
  101. ***** ^ undeclared identifier
  102. ***** ^ not supported yet
  103. ***** ^ not supported yet
  104. ***** ^ not supported yet
  105. ***** ^ not supported yet
  106. 34 MakeDescriptor( Desc^[ 13], 'FAXNBR', 15, 0, 'C');
  107. ***** ^ undeclared identifier
  108. ***** ^ not supported yet
  109. ***** ^ not supported yet
  110. ***** ^ not supported yet
  111. ***** ^ not supported yet
  112. 35 MakeDescriptor( Desc^[ 14], 'DATENTER', 8, 0, 'D');
  113. ***** ^ undeclared identifier
  114. ***** ^ not supported yet
  115. ***** ^ not supported yet
  116. ***** ^ not supported yet
  117. ***** ^ not supported yet
  118. 36 MakeDescriptor( Desc^[ 15], 'SHIPTOA1', 30, 0, 'C');
  119. ***** ^ undeclared identifier
  120. ***** ^ not supported yet
  121. ***** ^ not supported yet
  122. ***** ^ not supported yet
  123. ***** ^ not supported yet
  124. 37 MakeDescriptor( Desc^[ 16], 'SHIPTOA2', 30, 0, 'C');
  125. ***** ^ undeclared identifier
  126. ***** ^ not supported yet
  127. ***** ^ not supported yet
  128. ***** ^ not supported yet
  129. ***** ^ not supported yet
  130. 38 MakeDescriptor( Desc^[ 17], 'SHIPTOA3', 30, 0, 'C');
  131. ***** ^ undeclared identifier
  132. ***** ^ not supported yet
  133. ***** ^ not supported yet
  134. ***** ^ not supported yet
  135. ***** ^ not supported yet
  136. 39 MakeDescriptor( Desc^[ 18], 'SHIPTOZP', 9, 0, 'C');
  137. ***** ^ undeclared identifier
  138. ***** ^ not supported yet
  139. ***** ^ not supported yet
  140. ***** ^ not supported yet
  141. ***** ^ not supported yet
  142. 40 MakeDescriptor( Desc^[ 19], 'BILLTOA1', 30, 0, 'C');
  143. ***** ^ undeclared identifier
  144. ***** ^ not supported yet
  145. ***** ^ not supported yet
  146. ***** ^ not supported yet
  147. ***** ^ not supported yet
  148. 41 MakeDescriptor( Desc^[ 20], 'BILLTOA2', 30, 0, 'C');
  149. ***** ^ undeclared identifier
  150. ***** ^ not supported yet
  151. ***** ^ not supported yet
  152. ***** ^ not supported yet
  153. ***** ^ not supported yet
  154. 42 MakeDescriptor( Desc^[ 21], 'BILLTOA3', 30, 0, 'C');
  155. ***** ^ undeclared identifier
  156. ***** ^ not supported yet
  157. ***** ^ not supported yet
  158. ***** ^ not supported yet
  159. ***** ^ not supported yet
  160. 43 MakeDescriptor( Desc^[ 22], 'BILLTOZP', 9, 0, 'C');
  161. ***** ^ undeclared identifier
  162. ***** ^ not supported yet
  163. ***** ^ not supported yet
  164. ***** ^ not supported yet
  165. ***** ^ not supported yet
  166. 44 MakeDescriptor( Desc^[ 23], 'DISCLEVEL', 1, 0, 'N');
  167. ***** ^ undeclared identifier
  168. ***** ^ not supported yet
  169. ***** ^ not supported yet
  170. ***** ^ not supported yet
  171. ***** ^ not supported yet
  172. 45 MakeDescriptor( Desc^[ 24], 'DISCAMOUNT', 4, 2, 'N');
  173. ***** ^ undeclared identifier
  174. ***** ^ not supported yet
  175. ***** ^ not supported yet
  176. ***** ^ not supported yet
  177. ***** ^ not supported yet
  178. 46 MakeDescriptor( Desc^[ 25], 'SHIPVIA', 20, 0, 'C');
  179. ***** ^ undeclared identifier
  180. ***** ^ not supported yet
  181. ***** ^ not supported yet
  182. ***** ^ not supported yet
  183. ***** ^ not supported yet
  184. 47 MakeDescriptor( Desc^[ 26], 'TERMS', 20, 0, 'C');
  185. ***** ^ undeclared identifier
  186. ***** ^ not supported yet
  187. ***** ^ not supported yet
  188. ***** ^ not supported yet
  189. ***** ^ not supported yet
  190. 48 MakeDescriptor( Desc^[ 27], 'LIMIT', 10, 2, 'N');
  191. ***** ^ undeclared identifier
  192. ***** ^ not supported yet
  193. ***** ^ not supported yet
  194. ***** ^ not supported yet
  195. ***** ^ not supported yet
  196. 49 MakeDescriptor( Desc^[ 28], 'RESALENBR', 15, 0, 'C');
  197. ***** ^ undeclared identifier
  198. ***** ^ not supported yet
  199. ***** ^ not supported yet
  200. ***** ^ not supported yet
  201. ***** ^ not supported yet
  202. 50 MakeDescriptor( Desc^[ 29], 'TAXABLE', 1, 0, 'C');
  203. ***** ^ undeclared identifier
  204. ***** ^ not supported yet
  205. ***** ^ not supported yet
  206. ***** ^ not supported yet
  207. ***** ^ not supported yet
  208. 51 MakeDescriptor( Desc^[ 30], 'FREEFRGHT', 1, 0, 'C');
  209. ***** ^ undeclared identifier
  210. ***** ^ not supported yet
  211. ***** ^ not supported yet
  212. ***** ^ not supported yet
  213. ***** ^ not supported yet
  214. 52 MakeDescriptor( Desc^[ 31], 'SALEREPCOM', 4, 2, 'N');
  215. ***** ^ undeclared identifier
  216. ***** ^ not supported yet
  217. ***** ^ not supported yet
  218. ***** ^ not supported yet
  219. ***** ^ not supported yet
  220. 53 InitDBF('Customer.DBF',CustomerDBF,0,FALSE,TRUE,FALSE,DefaultFixUp);
  221. ***** ^ not supported yet
  222. ***** ^ not supported yet
  223. ***** ^ not supported yet
  224. ***** ^ undeclared identifier
  225. 54 (* It would be a good to test error.*)
  226. 55 Error:=BuildDBF(Desc^, 31,CustomerDBF);
  227. ***** ^ not supported yet
  228. ***** ^ not supported yet
  229. ***** ^ not supported yet
  230. 56 CloseDBF(CustomerDBF);
  231. ***** ^ not supported yet
  232. ***** ^ not supported yet
  233. 57 DEALLOCATE(Desc, 31 * SIZE(DBFieldDescriptor));
  234. ***** ^ not supported yet
  235. ***** ^ not supported yet
  236. ***** ^ not supported yet
  237. ***** ^ not supported yet
  238. 58 END MakeDatabase;
  239. ***** ^ not supported yet
  240. 59
  241. 60 BEGIN
  242. 61 MakeDatabase();
  243. ***** ^ not supported yet
  244. ***** ^ not supported yet
  245. 62
  246. 63 END MakeCustomerDBF.
  247. 182 errors