home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b077 / 1.img / SBGL.ZIP / BJH9.PRG < prev    next >
Encoding:
Text File  |  1979-12-31  |  6.0 KB  |  217 lines

  1. clear
  2. set talk off
  3. close database
  4. use jh index jh1
  5. if eof() .and. bof()
  6. @ 4,0 clear
  7. wait '             ╗╣├╗┼┼╨▐└φ╝╞╗«ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí'
  8. clos data
  9. retu
  10. endif
  11. do case 
  12. case b=1
  13. e=1
  14. g=3
  15. case b=2
  16. e=4
  17. g=6
  18. case b=3
  19. e=7
  20. g=9
  21. case b=4
  22. e=10
  23. g=12
  24. endcase
  25. x1=0
  26. x2=0
  27. x3=0
  28. x4=0
  29. x5=0
  30. x6=0
  31. x7=0
  32. x8=0
  33. y1=0
  34. y2=0
  35. y3=0
  36. y4=0
  37. y5=0
  38. y6=0
  39. y7=0
  40. y8=0
  41. z1=0
  42. z2=0
  43. z3=0
  44. z4=0
  45. z5=0
  46. z6=0
  47. z7=0
  48. z8=0
  49. loca for jh3>=e .and. jh3<=g
  50. if eof()
  51. @ 4,0 clear
  52. wait '                '+str(b,1)+'╝╛╢╚╬▐╨▐└φ╝╞╗«ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí'
  53. clos data
  54. retu
  55. endif
  56. clear
  57. @ 4,20 say '╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí'
  58. set cons off
  59. p=1
  60. a1=.t.
  61. do while a1
  62. set cons off
  63. set devi to print 
  64.  
  65. set print on
  66. ? chr(27)+"IJ"
  67. @ prow()+1,50 say str(b,2)+"╝╛╢╚╔Φ▒╕╨▐└φ╫█║╧╝╞╗«"
  68. @ prow()+1,1 say "                  "
  69. ? chr(27)+"II"
  70. set print off
  71. @ prow()+1,220 say "╡┌"+str(p,2)+"╥│"
  72. @ prow()+1,1 say ì
  73. "=================================================================ì
  74. ==================================================================ì
  75. ====="
  76. @ prow(),137 say ì
  77. "=================================================================ì
  78. ========================================="
  79. @ prow()+1,1 say "|         |        |                            ì
  80.       "+str(e,2)+"╘┬                                   |"
  81. @ prow(),95 say "                                  "+str(e+1,2)+"╘┬                                   |                                  "+str(g,2)+"╘┬                                   |"
  82. @ prow()+1,1 say "|╔Φ▒╕▒α║┼ ì
  83. |╨▐└φ└α▒≡|--------------------------------------------------------ì
  84. -----------------|" 
  85. @ prow(),95 say ì
  86. "-----------------------------------------------------------------ì
  87. --------|---------------------------------------------------------ì
  88. ----------------|"
  89. @ prow()+1,1 say "|         |        ì
  90. |╟»╣ñ╣ñ╩▒|╡τ╣ñ╣ñ╩▒|╞≡╓╪╣ñ╩▒|║╕╣ñ╣ñ╩▒|╣▄╣ñ╣ñ╩▒|╗·╝╙╣ñ╩▒|╞Σ╦ⁿ╣ñ╩▒|╨▐ì
  91. └φ╖╤╙├  |"
  92. @ prow(),95 say ì
  93. "╟»╣ñ╣ñ╩▒|╡τ╣ñ╣ñ╩▒|╞≡╓╪╣ñ╩▒|║╕╣ñ╣ñ╩▒|╣▄╣ñ╣ñ╩▒|╗·╝╙╣ñ╩▒|╞Σ╦ⁿ╣ñ╩▒|ì
  94. ╨▐└φ╖╤╙├  |╟»╣ñ╣ñ╩▒|╡τ╣ñ╣ñ╩▒|╞≡╓╪╣ñ╩▒|║╕╣ñ╣ñ╩▒|╣▄╣ñ╣ñ╩▒|╗·╝╙╣ñ╩▒|╞Σ╦ⁿ╣ñ╩▒|ì
  95. ╨▐└φ╖╤╙├  |"
  96. @ prow()+1,1 say ì
  97. "|---------|--------|--------|--------|--------|--------|--------|ì
  98. --------|--------|----------|"
  99. @ prow(),95 say ì
  100. "--------|--------|--------|--------|--------|--------|--------|-ì
  101. ---------|--------|--------|--------|--------|--------|--------|--ì
  102. ------|----------|"
  103. l=9
  104. do while .not. eof()
  105. do case 
  106. case jh2='1'
  107. d='┤≤╨▐'
  108. case jh2='2'
  109. d='╓╨╨▐'
  110. case jh2='3'
  111. d='╨í╨▐'
  112. case jh2='4'
  113. d='╢■▒ú'
  114. endcase
  115. @ prow()+1,1 say "|"+jh1+"|  "+d
  116. do case 
  117. case jh3=e
  118. @ prow(),20 say "|"+str(jh4,6,1)+"  ì
  119. |"+str(jh5,6,1)+"  |"+str(jh6,6,1)+"  |"+str(jh7,6,1)+"  ì
  120. |"+str(jh8,6,1)+"  |"+str(jh9,6,1)+"  |"+str(jh10,6,1)+"  ì
  121. |"+str(jh11,10,2)
  122. @ prow(),94 say "|        |        |        |        |        |   ì
  123.      |        |          |        |        |        |        |    ì
  124.     |        |        |          |"
  125. x1=x1+jh4
  126. x2=x2+jh5
  127. x3=x3+jh6
  128. x4=x4+jh7
  129. x5=x5+jh8
  130. x6=x6+jh9
  131. x7=x7+jh10
  132. x8=x8+jh11
  133. case jh3=e+1
  134. @ prow(),20 say "|        |        |        | ì
  135.        |        |        |        |          |"
  136. @ prow(),95 say str(jh4,6,1)+"  |"+str(jh5,6,1)+"  ì
  137. |"+str(jh6,6,1)+"  |"+str(jh7,6,1)+"  |"+str(jh8,6,1)+"  ì
  138. |"+str(jh9,6,1)+"  |"+str(jh10,6,1)+"  |"+str(jh11,10,2)
  139. @ prow(),168 say "|        |        |        |        |        |  ì
  140.       |        |          |"
  141. y1=y1+jh4
  142. y2=y2+jh5
  143. y3=y3+jh6
  144. y4=y4+jh7
  145. y5=y5+jh8
  146. y6=y6+jh9
  147. y7=y7+jh10
  148. y8=y8+jh11
  149. case jh3=g
  150. @ prow(),20 say "|        |        |        | ì
  151.        |        |        |        |          |        |        |  ì
  152.       |        |        |        |        |          |"
  153. @ prow(),170 say str(jh4,6,1)+" |"+str(jh5,6,1)+"  ì
  154. |"+str(jh6,6,1)+"  |"+str(jh7,6,1)+"  |"+str(jh8,6,1)+"  |"+str(jh9,6,1)+"  ì
  155. |"+str(jh10,6,1)+"  |"+str(jh11,10,2)+"|"
  156. z1=z1+jh4
  157. z2=z2+jh5
  158. z3=z3+jh6
  159. z4=z4+jh7
  160. z5=z5+jh8
  161. z6=z6+jh9
  162. z7=z7+jh10
  163. z8=z8+jh11
  164. endcase
  165. l=l+1
  166. cont 
  167. if .not. eof()
  168. if l>=20
  169. @ prow()+1,1 say ì
  170. "=================================================================ì
  171. ==================================================================ì
  172. ====="
  173. @ prow(),137 say ì
  174. "=================================================================ì
  175. ========================================="
  176. p=p+1
  177. ejec
  178. exit
  179. else
  180. @ prow()+1,1 say ì
  181. "|---------|--------|--------|--------|--------|--------|--------|ì
  182. --------|--------|----------|"
  183. @ prow(),95 say ì
  184. "--------|--------|--------|--------|--------|--------|--------|-ì
  185. ---------|--------|--------|--------|--------|--------|--------|--ì
  186. ------|----------|"
  187. l=l+1
  188. endif
  189. else
  190. @ prow()+1,1 say ì
  191. "|---------|--------|--------|--------|--------|--------|--------|ì
  192. --------|--------|----------"
  193. @ prow(),94 say ì
  194. "|--------|--------|--------|--------|--------|--------|--------|-ì
  195. ---------|--------|--------|--------|--------|--------|--------|--ì
  196. ------|----------|"
  197. a1=.f.
  198. endif
  199. enddo
  200. enddo a1
  201. @ prow()+1,1 say "|║╧     ╝╞|        ì
  202. |"+str(x1,8,1)+"|"+str(x2,8,1)+"|"+str(x3,8,1)+"|"+str(x4,8,1)+"|"+ì
  203. str(x5,8,1)+"|"+str(x6,8,1)+"|"+str(x7,8,1)+"|"+str(x8,10,2)
  204. @ prow(),94 say ì
  205. "|"+str(y1,8,1)+"|"+str(y2,8,1)+"|"+str(y3,8,1)+"|"+str(y4,8,1)+"|"ì
  206. +str(y5,8,1)+"|"+str(y6,8,1)+"|"+str(y7,8,1)+"|"+str(y8,10,2)
  207. @ prow(),169 say str(z1,8,1)+"|"+str(z2,8,1)+"|"+str(z3,8,1)+"|"+str(z4,8,1)+"|"+str(z5,8,1)+"|"+str(z6,8,1)+"|"+str(z7,8,1)+"|"+str(z8,10,2)+"|"
  208. @ prow()+1,1 say "=============================================================================================="
  209. @ prow(),95 say "===================================================================================================================================================="
  210. set print on
  211. ? chr(13)
  212. set print off
  213. set device to screen
  214. a1=.t.
  215. set cons on
  216. retu
  217.