home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b077 / 1.img / SBGL.ZIP / TX1.PRG < prev    next >
Encoding:
Text File  |  1980-01-01  |  4.4 KB  |  221 lines

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. a1=.t.
  6. do while a1
  7. clear
  8. @ 1,5 say "****************************╗¡╒█╧▀═╝****************************"
  9. @ 2,5 say " ú░ú«═╦│÷                         ú▒ú«╣╪╝ⁿ╔Φ▒╕┐¬╢»╠¿╩▒"
  10. @ 3,5 say " ú▓ú«═≥╘¬▓·╓╡╬¼╨▐╖╤╙├┬╩           ú│ú«╩┬╣╩┬╩"
  11. @ 4,5 say " ú┤ú«╣╩╒╧╞╡╢╚                     ú╡ú«╣╩╒╧═ú╗·┬╩"
  12. @ 5,5 say " ú╢ú«╔Φ▒╕┐╔└√╙├┬╩                 ú╖ú«╔Φ▒╕╙╨╨º└√╙├┬╩"
  13. @ 6,5 say " ú╕ú«╓≈╥¬╔Φ▒╕═Ω║├┬╩               ú╣ú«╛½,┤≤,╧í╔Φ▒╕═Ω║├┬╩"
  14. @ 7,5 say "****************************************************************"
  15. wait '     ╟δ╩Σ╚δ╤í╘±║┼(0,1,2,3,4,5,6,7,8,9):' to w
  16. set exac off
  17. do case 
  18. case w='0'
  19. retu
  20. case w='1'
  21. clear
  22. a='  '
  23. b='         '
  24. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  25. @ 5,20 say "╔Φ▒╕▒α║┼ú║" get b
  26. read
  27. b=trim(b)
  28. use zbmc
  29. goto 1
  30. repl z1 with b+'╔Φ▒╕╕≈╘┬┐¬╢»╠¿╩▒'
  31. skip
  32. repl z1 with '╘┬╖▌'
  33. skip
  34. repl z1 with '╠¿╩▒'
  35. copy to zbmc.txt delimited
  36. use yy 
  37. repl all yy4 with val(substr(yy2,4,2))
  38. copy to zbsz88.txt for yy2=a .and. yy1=b field yy4,yy3 delimited
  39. run basica as88
  40. case w='2'
  41. clear
  42. a='  '
  43. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║"get a pict '99'
  44. read 
  45. use zbmc
  46. goto 1
  47. repl z1 with a+'─Ω╕≈╘┬═≥╘¬▓·╓╡╬¼╨▐╖╤╙├┬╩'
  48. skip
  49. repl z1 with '╘┬╖▌'
  50. skip
  51. repl z1 with '╖╤╙├┬╩'
  52. copy to zbmc.txt delimited
  53. use fyl
  54. repl all f10 with val(substr(f1,4,2))
  55. copy to zbsz44.txt for f1=a field f10,f9 delimited
  56. use zbmc
  57. run basica as44
  58. case w='3'
  59. clear
  60. a='  '
  61. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  62. read
  63. use zbmc
  64. goto 1
  65. repl z1 with a+'─Ω╕≈╘┬╔Φ▒╕╩┬╣╩┬╩'
  66. skip
  67. repl z1 with '╘┬╖▌'   
  68. skip
  69. repl z1 with '╩┬╣╩┬╩'
  70. copy to zbmc.txt delimited
  71. use ysg
  72. repl all y9 with val(substr(y1,4,2))
  73. repl all y8 with y2/y7*100
  74. copy to zbsz44.txt for y1=a field y9,y8 delimited
  75. run basica as44
  76. case w='4'
  77. clear
  78. a='  '
  79. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  80. read
  81. use zbmc
  82. goto 1
  83. repl z1 with a+'─Ω╕≈╘┬╔Φ▒╕╣╩╒╧╞╡╢╚'
  84. skip
  85. repl z1 with '╘┬╖▌'
  86. skip
  87. repl z1 with '╞╡╢╚'
  88. copy to zbmc.txt delimited
  89. use ygz
  90. repl all g12 with val(substr(g1,4,2))
  91. repl all g13 with g2/g5
  92. copy to zbsz44.txt for g1=a field g12,g13 delimited
  93. run basica as44
  94. case w='5'
  95. clear
  96. a='  '
  97. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  98. read
  99. use zbmc
  100. goto 1
  101. repl z1 with a+'─Ω╕≈╘┬╔Φ▒╕╣╩╒╧═ú╗·┬╩'
  102. skip
  103. repl z1 with '╘┬╖▌'
  104. skip
  105. repl z1 with '═ú╗·┬╩'
  106. copy to zbmc.txt delimited
  107. use ygz
  108. repl all g12 with val(substr(g1,4,2))
  109. repl all g13 with g3/(g3+g6)*100 for g6<>0
  110. repl all g13 with 0 for g6+g3=0
  111. copy to zbsz44.txt for g1=a field g12,g13 delimited
  112. run basica as44
  113. case w='6'
  114. clear
  115. a='  '
  116. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  117. read
  118. use zbmc
  119. goto 1
  120. repl z1 with a+'─Ω╕≈╘┬╔Φ▒╕┐╔└√╙├┬╩'
  121. skip
  122. repl z1 with '╘┬╖▌'
  123. skip
  124. repl z1 with '└√╙├┬╩'
  125. copy to zbmc.txt delimited
  126. close database
  127. sele 1
  128. use ysg
  129. sele 2
  130. use ygz
  131. do while .not. eof()
  132. d=g1
  133. sele 1
  134. loca for y1=d
  135. e=y3
  136. sele 2
  137. repl g14 with e
  138. skip
  139. enddo
  140. repl all g12 with val(substr(g1,4,2))
  141. repl all g13 with (g7-g3-g4-g14)/g7*100 for g7<>0
  142. repl all g13 with 100 for g7=0
  143. copy to zbsz44.txt for g1=a field g12,g13 delimited
  144. run basica as44
  145. case w='7'
  146. clear
  147. a='  '
  148. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  149. read
  150. use zbmc
  151. goto 1
  152. repl z1 with a+'─Ω╕≈╘┬╔Φ▒╕╙╨╨º└√╙├┬╩'
  153. skip
  154. repl z1 with '╘┬╖▌'
  155. skip
  156. repl z1 with '└√╙├┬╩'
  157. copy to zbmc.txt delimited
  158. close database
  159. sele 1
  160. use ysg
  161. sele 2
  162. use ygz
  163. do while .not. eof()
  164. d=g1
  165. sele 1
  166. loca for y1=d
  167. e=y3
  168. sele 2
  169. repl g14 with e
  170. skip
  171. enddo
  172. repl all g12 with val(substr(g1,4,2))
  173. repl all g13 with g6/(g6+g3+g4+g14)*100 for g3+g4+g14<>0
  174. repl all g13 with 100 for g6+g3+g4+g14=0
  175. copy to zbsz44.txt for g1=a field g12,g13 delimited
  176. run basica as44
  177. case w='8'
  178. clear
  179. a='  '
  180. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  181. read
  182. use zbmc
  183. goto 1
  184. repl z1 with a+'─Ω╕≈╘┬╓≈╥¬╔Φ▒╕═Ω║├┬╩'
  185. skip
  186. repl z1 with '╘┬╖▌'
  187. skip
  188. repl z1 with '═Ω║├┬╩'
  189. copy to zbmc.txt delimited
  190. use ygz
  191. repl all g12 with val(substr(g1,4,2))
  192. repl all g13 with g9/g8*100 for g8<>0
  193. repl all g13 with 100 for g8=0
  194. copy to zbsz44.txt for g1=a field g12,g13 delimited
  195. run basica as44
  196. case w='9'
  197. clear
  198. a='  '
  199. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  200. read
  201. use zbmc
  202. goto 1
  203. repl z1 with a+'─Ω╕≈╘┬╛½ú¼┤≤ú¼╧í╔Φ▒╕═Ω║├┬╩'
  204. skip
  205. repl z1 with '╘┬╖▌'
  206. skip
  207. repl z1 with '═Ω║├┬╩'
  208. copy to zbmc.txt delimited
  209. use ygz
  210. repl all g12 with val(substr(g1,4,2))
  211. repl all g13 with g11/g10*100 for g10<>0
  212. repl all g13 with 100 for g10=0
  213. copy to zbsz44.txt for g1=a field g12,g13 delimited
  214. run basica as44
  215. endcase
  216. enddo
  217. set exac on
  218. retu
  219.  
  220.  
  221.