LOGICINP.LST 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. Listing:
  2. 1 IMPLEMENTATION MODULE LogicInput;
  3. 2 (*
  4. 3 * REPERTOIRE
  5. 4 * Release 1.6
  6. 5 * By Charles Bradford and Cole Brecheen
  7. 6 * (c) Copyright 1985-1992 PMI
  8. 7 * Green Bay, Wisconsin
  9. 8 * All rights reserved
  10. 9 * (414) 468-6040
  11. 10 *
  12. 11 * $Header: D:/logfiles/mods/logicinp.mov 1.5 10 Mar 1991 15:29:10 coleb $
  13. 12 *
  14. 13 *)
  15. 14
  16. 15
  17. 16 IMPORT ListUtils;
  18. 17 IMPORT ScrnTypes;
  19. 18 IMPORT ScrnUtl1;
  20. 19 IMPORT StrLogic;
  21. 20
  22. 21 VAR
  23. 22 Initialized : BOOLEAN;
  24. 23
  25. 24 PROCEDURE Init();
  26. 25 BEGIN
  27. 26 IF Initialized THEN
  28. 27 RETURN;
  29. 28 ELSE
  30. 29 Initialized := TRUE;
  31. 30 END;
  32. 31 ListUtils.Init();
  33. ***** ^ not supported yet
  34. ***** ^ not supported yet
  35. ***** ^ not supported yet
  36. 32 ScrnTypes.Init();
  37. ***** ^ not supported yet
  38. ***** ^ not supported yet
  39. ***** ^ not supported yet
  40. 33 ScrnUtl1.Init();
  41. ***** ^ not supported yet
  42. ***** ^ not supported yet
  43. ***** ^ not supported yet
  44. 34 StrLogic.Init();
  45. ***** ^ not supported yet
  46. ***** ^ not supported yet
  47. ***** ^ not supported yet
  48. 35 END Init;
  49. ***** ^ not supported yet
  50. 36
  51. 37 PROCEDURE WhatTheySaid(VAR TheFrame : ScrnTypes.DisplayFrame; FieldName :
  52. ***** ^ not supported yet
  53. 38 ARRAY OF CHAR) : CARDINAL;
  54. ***** ^ not supported yet
  55. 39 VAR
  56. 40 ExprString: ARRAY [0..511] OF CHAR;
  57. ***** ^ not supported yet
  58. ***** ^ not supported yet
  59. 41 TmpStr: ARRAY [0..79] OF CHAR;
  60. ***** ^ not supported yet
  61. ***** ^ not supported yet
  62. 42 FieldNumber : CARDINAL;
  63. 43 BEGIN
  64. 44 IF FieldName[0] # 0C THEN
  65. ***** ^ not supported yet
  66. ***** ^ not supported yet
  67. 45 FieldNumber := ScrnUtl1.FieldNum( TheFrame, FieldName );
  68. ***** ^ not supported yet
  69. ***** ^ not supported yet
  70. ***** ^ not supported yet
  71. ***** ^ not supported yet
  72. 46 ELSE
  73. 47 FieldNumber := TheFrame^.CurrentField;
  74. ***** ^ not supported yet
  75. ***** ^ not supported yet
  76. 48 END;
  77. 49 ScrnUtl1.GetFieldText( TheFrame, FieldNumber, TmpStr );
  78. ***** ^ not supported yet
  79. ***** ^ not supported yet
  80. ***** ^ not supported yet
  81. ***** ^ not supported yet
  82. 50 ListUtils.ListToString( TheFrame^.DataList, ExprString );
  83. ***** ^ not supported yet
  84. ***** ^ not supported yet
  85. ***** ^ not supported yet
  86. ***** ^ not supported yet
  87. ***** ^ not supported yet
  88. 51 RETURN (StrLogic.ExpressionTest( TmpStr, ExprString));
  89. ***** ^ not supported yet
  90. ***** ^ not supported yet
  91. ***** ^ not supported yet
  92. ***** ^ not supported yet
  93. 52 END WhatTheySaid;
  94. ***** ^ not supported yet
  95. 53
  96. 54 BEGIN
  97. 55 Initialized := FALSE;
  98. 56 Init();
  99. ***** ^ not supported yet
  100. ***** ^ not supported yet
  101. 57 END LogicInput.
  102. ***** ^ not supported yet
  103. 44 errors