PACK.LST 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Listing:
  2. 1
  3. 2 MODULE Pack;
  4. 3 (*
  5. 4 * ModBase
  6. 5 * Release 3.0
  7. 6 * By Don Fletcher & John McMonagle
  8. 7 * (c) Copyright 1986 - 1991 PMI
  9. 8 * P.O. Box 8402
  10. 9 * Green Bay Wi 53308
  11. 10 * All Rights Reserved
  12. 11 *
  13. 12 *)
  14. 13
  15. 14 FROM StrConv IMPORT
  16. 15 CardinalToStr;
  17. 16
  18. 17 FROM EnvironUtils IMPORT ParsedParam;
  19. 18
  20. 19 FROM StringIO IMPORT
  21. 20 ReadStr, WriteStr, WriteEol;
  22. 21
  23. 22 FROM M2Strings IMPORT
  24. 23 Assign, CompareStr,Concat;
  25. 24
  26. 25 FROM ModBase3 IMPORT InitDBF,DBFile,OpenDBF,DefaultFixUp;
  27. 26
  28. 27 FROM DBCopier IMPORT DBPack;
  29. 28
  30. 29 IMPORT InitCompilerMods;
  31. 30
  32. 31 CONST
  33. 32 inp = 0;
  34. 33 outp = 1;
  35. 34 prn = 4;
  36. 35 stderror = 2;
  37. 36
  38. 37 VAR
  39. 38 dbf : DBFile;
  40. 39 Name: ARRAY[0..70] OF CHAR;
  41. ***** ^ not supported yet
  42. ***** ^ not supported yet
  43. 40 BEGIN
  44. 41
  45. 42 WriteEol( outp,
  46. ***** ^ not supported yet
  47. 43 'This program Pack Dbase3 Files.' );
  48. ***** ^ not supported yet
  49. 44
  50. 45 IF NOT ParsedParam(1,Name) THEN
  51. ***** ^ not supported yet
  52. ***** ^ not supported yet
  53. 46 WriteStr(outp,'Enter full DBase3 file Name:');
  54. ***** ^ not supported yet
  55. ***** ^ not supported yet
  56. 47 ReadStr(inp,Name);
  57. ***** ^ not supported yet
  58. ***** ^ not supported yet
  59. 48 END;
  60. 49
  61. 50 InitDBF( Name, dbf, 40000 ,FALSE,TRUE,FALSE,DefaultFixUp);
  62. ***** ^ not supported yet
  63. ***** ^ not supported yet
  64. ***** ^ not supported yet
  65. ***** ^ not supported yet
  66. 51 WHILE ~OpenDBF(dbf) DO
  67. ***** ^ not supported yet
  68. ***** ^ not supported yet
  69. 52 WriteStr(outp,'Not Opened Renter full Dbase3 File Name:');
  70. ***** ^ not supported yet
  71. ***** ^ not supported yet
  72. 53 ReadStr(inp,Name);
  73. ***** ^ not supported yet
  74. ***** ^ not supported yet
  75. 54
  76. 55
  77. 56 END (* while *);
  78. 57
  79. 58
  80. 59 DBPack(dbf);
  81. ***** ^ not supported yet
  82. ***** ^ not supported yet
  83. 60 WriteEol( outp, 'Packing complete.' );
  84. ***** ^ not supported yet
  85. ***** ^ not supported yet
  86. 61 END Pack.
  87. 24 errors