Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. set date Italian
  2. set softseek on
  3. use GROUP new
  4. index on Ngr to GROUP
  5. use STUD new
  6. set relation to Ngr into GROUP
  7. set softseek on
  8.  
  9. ?"----------1-----------"
  10. index on fio to fio.ntx
  11. do while(!eof())
  12. ? fio, Ngr, GROUP->spec
  13. skip
  14. enddo
  15. ?
  16.  
  17. ?"----------2-----------"
  18. index on fio to fio.ntx
  19. testNgr = Ngr
  20. ?Ngr
  21. ?" ",fio,GROUP->spec
  22. skip
  23. do while(!eof())
  24. if testNgr # Ngr
  25. ?
  26. ?Ngr
  27. endif
  28. testNgr = Ngr
  29. ?" ",fio,GROUP->spec
  30. skip
  31. enddo
  32. ?
  33.  
  34. ?"----------3-----------"
  35.  
  36. index on str(Ngr)+fio to fio.ntx
  37. testNgr = Ngr
  38. testSpec = GROUP->spec
  39. ?Ngr,GROUP->spec
  40. skip
  41. do while(!eof())
  42. if testNgr # Ngr
  43. ?Ngr,GROUP->spec
  44. elseif testSpec # GROUP->spec
  45. ?Ngr,GROUP->spec
  46. endif
  47. ?" ",fio
  48. skip
  49. enddo
  50. ?
  51.  
  52. ?"----------4-----------"
  53. index on str(GROUP->spec)+fio to fio.ntx
  54. testNgr = Ngr
  55. testSpec = GROUP->spec
  56. ?
  57. ?GROUP->spec, Ngr
  58. do while(!eof())
  59. if testSpec # GROUP->spec
  60. ?GROUP->spec,Ngr
  61. elseif testNgr # Ngr
  62. ?GROUP->spec,Ngr
  63. endif
  64.  
  65. testNgr = Ngr
  66. testSpec = GROUP->spec
  67. ?" ",fio
  68. skip
  69. enddo
  70. ?
  71.  
  72. ?"----------5-----------"
  73. index on str(GROUP->spec)+str(Ngr)+fio to fio.ntx
  74. testSpec = GROUP->spec
  75. testNgr = Ngr
  76. ?GROUP->spec," ",Ngr," ",fio
  77. skip
  78. do while(!eof())
  79. if testSpec # GROUP->spec
  80. ?
  81. ?GROUP->spec
  82. endif
  83. if testNgr # Ngr
  84. ?
  85. ?" ",Ngr
  86. endif
  87. testSpec = GROUP->spec
  88. testNgr = Ngr
  89. ?" ",fio
  90. skip
  91.  
  92. enddo
  93. ?
  94.  
  95. ?"----------6-----------"
  96. index on str(GROUP->spec)+fio to fio.ntx
  97. testSpec = GROUP->spec
  98. ?GROUP->spec," ",fio,Ngr
  99. skip
  100. do while(!eof())
  101. if testSpec # GROUP->spec
  102. ?GROUP->spec
  103. endif
  104. testSpec = GROUP->spec
  105. ?" ",fio,Ngr
  106. skip
  107. enddo
  108. ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement