home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b077 / 1.img / SBGL.ZIP / BJH7.PRG < prev    next >
Encoding:
Text File  |  1979-12-31  |  5.0 KB  |  228 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. @ 4,20 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí"
  12. set cons off
  13. set device to print 
  14. x1=0
  15. x2=0
  16. x3=0
  17. x4=0
  18. x5=0
  19. x6=0
  20. x7=0
  21. x8=0
  22. x9=0
  23. x10=0
  24. x11=0
  25. x12=0 
  26. y1=0
  27. y2=0
  28. y3=0
  29. y4=0
  30. y5=0
  31. y6=0
  32. y7=0
  33. y8=0
  34. y9=0
  35. y10=0
  36. y11=0
  37. y12=0
  38. p=1
  39. a1=.t.
  40. do while a1
  41. set cons off
  42. set print on
  43. ? chr(27)+"IJ"
  44. @ prow()+1,55 say "╔Φ▒╕─Ω╫█║╧╨▐└φ╝╞╗«"
  45. ? chr(27)+"II"
  46. set print off
  47. set cons on
  48. @ prow()+1,1 say "                   "
  49. @ prow(),240 say "╡┌"+str(p,2)+"╥│"
  50. @ prow()+1,1 say ì
  51. "=================================================================ì
  52. ==================================================================ì
  53. ====="
  54. @ prow(),137 say ì
  55. "=================================================================ì
  56. ======================================================="
  57. @ prow()+1,1 say "|         |    |          ú▒       |         ì
  58. ú▓        |         ú│        |         ú┤        |         ú╡ ì
  59.        |        ú╢         |"
  60. @ prow(),137 say "        ú╖         |        ú╕         |        ì
  61.  ú╣        |        ú▒ú░       |        ú▒ú▒       |        ú▒ú▓     ì
  62.   |"
  63. @ prow()+1,1 say "|╔Φ▒╕▒α║┼ ì
  64. |└α▒≡|-------------------|-------------------|-------------------|ì
  65. -------------------|-------------------|-------------------|"
  66. @ prow(),137 say ì
  67. "-------------------|-------------------|-------------------|-----ì
  68. --------------|-------------------|-------------------|"
  69. @ prow()+1,1 say "|         |    |  ╣ñ╩▒  |   ╖╤╙├   |  ╣ñ╩▒  |   ì
  70. ╖╤╙├   |  ╣ñ╩▒  |   ╖╤╙├   |  ╣ñ╩▒  |   ╖╤╙├   |  ╣ñ╩▒  |   ╖╤╙├  ì
  71.  |  ╣ñ╩▒  |   ╖╤╙├  "
  72. @ prow(),136 say "|  ╣ñ╩▒  |   ╖╤╙├   |  ╣ñ╩▒  |   ╖╤╙├   |  ╣ñ╩▒ ì
  73.  |   ╖╤╙├   |  ╣ñ╩▒  |   ╖╤╙├   |  ╣ñ╩▒  |   ╖╤╙├   |  ╣ñ╩▒  |   ì
  74. ╖╤╙├   |"
  75. @ prow()+1,1 say ì
  76. "|---------|----|--------|----------|--------|----------|--------|ì
  77. ----------|--------|----------|--------|----------|--------|------ì
  78. ----|"
  79. @ prow(),137 say ì
  80. "--------|----------|--------|----------|--------|----------|-----ì
  81. ---|----------|--------|----------|--------|----------|"
  82. l=9
  83. do while .not. eof()
  84. do case 
  85. case jh2='1'
  86. d='┤≤╨▐'
  87. case jh2='2'
  88. d='╓╨╨▐'
  89. case jh2='3'
  90. d='╨í╨▐'
  91. case jh2='4'
  92. d='╢■▒ú'
  93. endcase 
  94. @ prow()+1,1 say "|"+jh1+"|"+d
  95. a=jh4+jh5+jh6+jh7+jh8+jh9+jh10
  96. q=16
  97. p1=1
  98. do while p1<=jh3
  99. if p1=jh3
  100. if jh3=12 .and. p1=12
  101. @ prow(),q say "|"+str(a,8,1)+"|"+str(jh11,10,2)+"|"
  102. else
  103. @ prow(),q say "|"+str(a,8,1)+"|"+str(jh11,10,2)
  104. endif
  105. else
  106. @ prow(),q say "|        |          "
  107. endif
  108. q=q+20
  109. p1=p1+1
  110. enddo
  111. do while p1<=12
  112. if p1<>12
  113. @ prow(),q say "|        |          "
  114. else
  115. @ prow(),q say "|        |          |"
  116. endif
  117. q=q+20
  118. p1=p1+1
  119. enddo
  120. do case 
  121. case jh3=1
  122. x1=x1+a
  123. y1=y1+jh11
  124. case jh3=2
  125. x2=x2+a
  126. y2=y2+jh11
  127. case jh3=3
  128. x3=x3+a
  129. y3=y3+jh11
  130. case jh3=4
  131. x4=x4+a
  132. y4=y4+jh11
  133. case jh3=5
  134. x5=x5+a
  135. y5=y5+jh11
  136. case jh3=6
  137. x6=x6+a
  138. y6=y6+jh11
  139. case jh3=7
  140. x7=x7+a
  141. y7=y7+jh11
  142. case jh3=8
  143. x8=x8+a
  144. y8=y8+jh11
  145. case jh3=9
  146. x9=x9+a
  147. y9=y9+jh11
  148. case jh3=10
  149. x10=x10+a
  150. y10=y10+jh11
  151. case jh3=11
  152. x11=x11+a
  153. y11=y11+jh11
  154. case jh3=12
  155. x12=x12+a
  156. y12=y12+jh11
  157. endcase
  158. skip
  159. l=l+1
  160. if .not. eof()
  161. if l>=20
  162. @ prow()+1,1 say ì
  163. "=================================================================ì
  164. ==================================================================ì
  165. ====="
  166. @ prow(),137 say ì
  167. "=================================================================ì
  168. ======================================================="
  169. p=p+1
  170. exit
  171. ejec
  172. else
  173. @ prow()+1,1 say ì
  174. "|---------|----|--------|----------|--------|----------|--------|ì
  175. ----------|--------|----------|--------|----------|--------|------ì
  176. ----|"
  177. @ prow(),137 say ì
  178. "--------|----------|--------|----------|--------|----------|-----ì
  179. ---|----------|--------|----------|--------|----------|"
  180. l=l+1
  181. endif
  182. else
  183. @ prow()+1,1 say ì
  184. "|---------|----|--------|----------|--------|----------|--------|ì
  185. ----------|--------|----------|--------|----------|--------|------ì
  186. ----|"
  187. @ prow(),137 say ì
  188. "--------|----------|--------|----------|--------|----------|-----ì
  189. ---|----------|--------|----------|--------|----------|"
  190. a1=.f.
  191. endif
  192. enddo
  193. enddo a1
  194. @ prow()+1,1 say "|║╧     ╝╞|    ì
  195. |"+str(x1,8,1)+"|"+str(y1,10,2)+"|"+str(x2,8,1)+"|"+str(y2,10,2)+"ì
  196. |"+str(x3,8,1)+"|"+str(y3,10,2)+"|"+str(x4,8,1)+"|"+str(y5,10,2)
  197. @ prow(),116 say ì
  198. "|"+str(x6,8,1)+"|"+str(y6,10,2)+"|"+str(x7,8,1)+"|"+str(y7,10,2)+ì
  199. "|"+str(x8,8,1)+"|"+str(y8,10,2)+"|"+str(x9,8,1)+"|"+str(y9,10,2)+ì
  200. str(x10,8,1)+"|"+str(y10,10,2)
  201. @ prow(),216 say ì
  202. "|"+str(x11,8,1)+"|"+str(y11,10,2)+"|"+str(x12,8,1)+"|"+str(y12,10ì
  203. ,2)+"|"
  204. @ prow()+1,1 say ì
  205. "=================================================================ì
  206. ==================================================================ì
  207. ====="
  208. @ prow(),137 say ì
  209. "=================================================================ì
  210. ======================================================="
  211. set print on
  212. ? chr(13)
  213. set print off
  214. set device to screen
  215. set cons on
  216. retu
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.