DBRELATE.LST 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Listing:
  2. 1
  3. 2 (*
  4. 3 * ModBase
  5. 4 * Release 3.0
  6. 5 * (c) copyright 1990 PMI
  7. 6 * P.O. Box 8402
  8. 7 * Green Bay Wi 53308
  9. 8 * All Rights Reserved
  10. 9 *
  11. 10 *)
  12. 11
  13. 12 IMPLEMENTATION MODULE DBRelate;
  14. 13 (* Copywright 1990-1991 John McMonagle
  15. 14 ModBase 3.0 *)
  16. 15 FROM ModBase3 IMPORT
  17. 16 DBFile,ReadDBRec;
  18. 17 FROM DBIndxes IMPORT
  19. 18 DBIndex,FindPositionCh,FindPositionN,CurrentRec,NumKeyType;
  20. 19
  21. 20 PROCEDURE ReadRelate(key:ARRAY OF CHAR; ndx:DBIndex;
  22. ***** ^ not supported yet
  23. 21 dbf:DBFile):BOOLEAN;
  24. 22 VAR
  25. 23 ok:BOOLEAN;
  26. 24 BEGIN
  27. 25 IF NumKeyType(ndx)
  28. ***** ^ not supported yet
  29. ***** ^ not supported yet
  30. 26 THEN
  31. 27 FindPositionN(ndx,key,ok);
  32. ***** ^ not supported yet
  33. ***** ^ not supported yet
  34. ***** ^ not supported yet
  35. ***** ^ not supported yet
  36. 28 ELSE
  37. 29 FindPositionCh(ndx,key,ok);
  38. ***** ^ not supported yet
  39. ***** ^ not supported yet
  40. ***** ^ not supported yet
  41. ***** ^ not supported yet
  42. 30 END;
  43. 31 IF NOT ok
  44. 32 THEN
  45. 33 RETURN FALSE;
  46. 34 END;
  47. 35 ReadDBRec(dbf,CurrentRec(ndx));
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. ***** ^ not supported yet
  51. ***** ^ not supported yet
  52. 36 (* assume if ReadDBREC fails program will terminate *)
  53. 37 RETURN TRUE;
  54. 38 END ReadRelate;
  55. ***** ^ not supported yet
  56. 39
  57. 40 END DBRelate.
  58. ***** ^ not supported yet
  59. 17 errors