MAKEERCO.LST 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Listing:
  2. 1 MODULE MakeErcompDBF;
  3. 2 (*
  4. 3 * ModBase
  5. 4 * Release 3.0
  6. 5 * (c) Copyright 1986 - 1991 PMI
  7. 6 Copyright 1988 - 1991 John McMonagle
  8. 7 * P.O. Box 8402
  9. 8 * Green Bay Wi 53308
  10. 9 * All Rights Reserved
  11. 10 * by Ed Ross
  12. 11 *)
  13. 12
  14. 13
  15. 14 (* this program will create the file for Ercomp *)
  16. 15 FROM LowLevel IMPORT Fill;
  17. 16 FROM ModBase3 IMPORT InitDBF,OpenDBF,CloseDBF,ReadDBRec,
  18. 17 GetField,DBFieldDescriptor,DBFile;
  19. 18
  20. 19 FROM DBCreate IMPORT BuildDBF;
  21. 20 FROM SYSTEM IMPORT SIZE,ADR;
  22. 21 FROM Storage IMPORT ALLOCATE,DEALLOCATE;
  23. 22
  24. 23 VAR
  25. 24 ErcompDBF : DBFile;
  26. 25
  27. 26
  28. 27 PROCEDURE MakeDatabase();
  29. 28 VAR
  30. 29 Desc : POINTER TO ARRAY [1..200] OF DBFieldDescriptor;
  31. ***** ^ not supported yet
  32. ***** ^ not supported yet
  33. 30 BEGIN
  34. 31 ALLOCATE(Desc, 6 * SIZE(DBFieldDescriptor));
  35. ***** ^ not supported yet
  36. ***** ^ not supported yet
  37. ***** ^ not supported yet
  38. ***** ^ not supported yet
  39. 32 Fill(Desc, 6 * SIZE(DBFieldDescriptor),0);
  40. ***** ^ not supported yet
  41. ***** ^ not supported yet
  42. ***** ^ not supported yet
  43. ***** ^ not supported yet
  44. ***** ^ not supported yet
  45. 33 MakeDescriptor( Desc^[ 1], 'ERKEY', 8, 0, 'C');
  46. ***** ^ undeclared identifier
  47. ***** ^ not supported yet
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. ***** ^ not supported yet
  51. 34 MakeDescriptor( Desc^[ 2], 'ERNAME', 30, 0, 'C');
  52. ***** ^ undeclared identifier
  53. ***** ^ not supported yet
  54. ***** ^ not supported yet
  55. ***** ^ not supported yet
  56. ***** ^ not supported yet
  57. 35 MakeDescriptor( Desc^[ 3], 'ERTYPE ', 12, 0, 'C');
  58. ***** ^ undeclared identifier
  59. ***** ^ not supported yet
  60. ***** ^ not supported yet
  61. ***** ^ not supported yet
  62. ***** ^ not supported yet
  63. 36 MakeDescriptor( Desc^[ 4], 'RELATED_1 ', 8, 0, 'C');
  64. ***** ^ undeclared identifier
  65. ***** ^ not supported yet
  66. ***** ^ not supported yet
  67. ***** ^ not supported yet
  68. ***** ^ not supported yet
  69. 37 MakeDescriptor( Desc^[ 5], 'RELATED_2 ', 8, 0, 'C');
  70. ***** ^ undeclared identifier
  71. ***** ^ not supported yet
  72. ***** ^ not supported yet
  73. ***** ^ not supported yet
  74. ***** ^ not supported yet
  75. 38 MakeDescriptor( Desc^[ 6], 'ERDESC ', 10, 0, 'M');
  76. ***** ^ undeclared identifier
  77. ***** ^ not supported yet
  78. ***** ^ not supported yet
  79. ***** ^ not supported yet
  80. ***** ^ not supported yet
  81. 39 InitDBF('Ercomp.DBF',ErcompDBF,0,FALSE,TRUE,FALSE,DefaultFixUp);
  82. ***** ^ not supported yet
  83. ***** ^ not supported yet
  84. ***** ^ not supported yet
  85. ***** ^ undeclared identifier
  86. 40 BuildDBF('Desc^, 6,ErcompDBF);
  87. ***** ^ not supported yet
  88. 41 CloseDBF(ErcompDBF);
  89. 42 DEALLOCATE(Desc, 6 * SIZE(DBFieldDescriptor));
  90. 43 END MakeDatabase;
  91. 44
  92. 45 BEGIN
  93. 46 MakeDatabase();
  94. 47
  95. 48 END MakeErcompDBF.
  96. 46 errors