PACK.MOD 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. MODULE Pack;
  2. (*
  3. * ModBase
  4. * Release 3.0
  5. * By Don Fletcher & John McMonagle
  6. * (c) Copyright 1986 - 1991 PMI
  7. * P.O. Box 8402
  8. * Green Bay Wi 53308
  9. * All Rights Reserved
  10. *
  11. *)
  12. FROM StrConv IMPORT
  13. CardinalToStr;
  14. FROM EnvironUtils IMPORT ParsedParam;
  15. FROM StringIO IMPORT
  16. ReadStr, WriteStr, WriteEol;
  17. FROM M2Strings IMPORT
  18. Assign, CompareStr,Concat;
  19. FROM ModBase3 IMPORT InitDBF,DBFile,OpenDBF,DefaultFixUp;
  20. FROM DBCopier IMPORT DBPack;
  21. IMPORT InitCompilerMods;
  22. CONST
  23. inp = 0;
  24. outp = 1;
  25. prn = 4;
  26. stderror = 2;
  27. VAR
  28. dbf : DBFile;
  29. Name: ARRAY[0..70] OF CHAR;
  30. BEGIN
  31. WriteEol( outp,
  32. 'This program Pack Dbase3 Files.' );
  33. IF NOT ParsedParam(1,Name) THEN
  34. WriteStr(outp,'Enter full DBase3 file Name:');
  35. ReadStr(inp,Name);
  36. END;
  37. InitDBF( Name, dbf, 40000 ,FALSE,TRUE,FALSE,DefaultFixUp);
  38. WHILE ~OpenDBF(dbf) DO
  39. WriteStr(outp,'Not Opened Renter full Dbase3 File Name:');
  40. ReadStr(inp,Name);
  41. END (* while *);
  42. DBPack(dbf);
  43. WriteEol( outp, 'Packing complete.' );
  44. END Pack.