MAKETEST.LST 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Listing:
  2. 1 MODULE MakeTestDBF;
  3. 2 (* this program will create the file for Test *)
  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 TestDBF : 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, 2 * SIZE(DBFieldDescriptor));
  24. ***** ^ not supported yet
  25. ***** ^ not supported yet
  26. ***** ^ not supported yet
  27. ***** ^ not supported yet
  28. 21 Fill(Desc, 2 * 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], 'TEST', 30, 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], 'TEMP', 20, 0, 'C');
  41. ***** ^ undeclared identifier
  42. ***** ^ not supported yet
  43. ***** ^ not supported yet
  44. ***** ^ not supported yet
  45. ***** ^ not supported yet
  46. 24 InitDBF('Test.DBF',TestDBF,0,FALSE,TRUE,FALSE,DefaultFixUp);
  47. ***** ^ not supported yet
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. ***** ^ undeclared identifier
  51. 25 (* It would be a good to test error.*)
  52. 26 Error:=BuildDBF(Desc^, 2,TestDBF);
  53. ***** ^ not supported yet
  54. ***** ^ not supported yet
  55. ***** ^ not supported yet
  56. 27 CloseDBF(TestDBF);
  57. ***** ^ not supported yet
  58. ***** ^ not supported yet
  59. 28 DEALLOCATE(Desc, 2 * SIZE(DBFieldDescriptor));
  60. ***** ^ not supported yet
  61. ***** ^ not supported yet
  62. ***** ^ not supported yet
  63. ***** ^ not supported yet
  64. 29 END MakeDatabase;
  65. ***** ^ not supported yet
  66. 30
  67. 31 BEGIN
  68. 32 MakeDatabase();
  69. ***** ^ not supported yet
  70. ***** ^ not supported yet
  71. 33
  72. 34 END MakeTestDBF.
  73. 37 errors