home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b077 / 1.img / SBGL.ZIP / TX.PRG < prev    next >
Encoding:
Text File  |  1979-12-31  |  4.9 KB  |  244 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. @ 8,5 say "****************************************************************"
  16. wait '     ╟δ╩Σ╚δ╤í╘±║┼(0,1,2,3,4,5,6,7,8,9,a):' to w
  17. set exac off
  18. do case 
  19. case w='0'
  20. retu
  21. case w='a'
  22. clear
  23. a='  '
  24. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  25. read
  26. use zbmc
  27. goto 1
  28. repl z1 with '╣╩╒╧,╩┬╣╩,╝╞╗«╨▐└φ╖╤╙├▒╚╜╧'
  29. skip
  30. repl z1 with '╘┬╖▌'
  31. skip
  32. repl z1 with '╖╤╙├'
  33. skip
  34. repl z1 with '╝╞╗«'
  35. skip
  36. repl z1 with '╣╩╒╧'
  37. skip
  38. repl z1 with '╩┬╣╩'
  39. copy to zbmc.txt delimited
  40. use bjb
  41. repl all b8 with val(substr(b7,4,2))
  42. copy to zbsz77.txt for b7=a field b8,b4,b5,b6 delimited
  43. run basica as77
  44. case w='1'
  45. clear
  46. a='  '
  47. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  48. read
  49. use zbmc
  50. goto 1
  51. repl z1 with '╣╩╒╧,╩┬╣╩,╝╞╗«╨▐└φ╣ñ╩▒▒╚╜╧'
  52. skip
  53. repl z1 with '╘┬╖▌'
  54. skip
  55. repl z1 with '╖╤╙├'
  56. skip
  57. repl z1 with '╝╞╗«'
  58. skip
  59. repl z1 with '╣╩╒╧'
  60. skip
  61. repl z1 with '╩┬╣╩'
  62. copy to zbmc.txt delimited
  63. use bjb
  64. repl all b8 with val(substr(b7,4,2))
  65. copy to zbsz77.txt for b7=a field b8,b1,b2,b3 delimited
  66. run basica as77
  67. case w='2'
  68. clear
  69. a='  '
  70. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║"get a pict '99'
  71. read 
  72. use zbmc
  73. goto 1
  74. repl z1 with a+'─Ω╕≈╘┬═≥╘¬▓·╓╡╬¼╨▐╖╤╙├┬╩'
  75. skip
  76. repl z1 with '╘┬╖▌'
  77. skip
  78. repl z1 with '╖╤╙├┬╩'
  79. copy to zbmc.txt delimited
  80. use fyl index fyl1
  81. repl all f10 with val(substr(f1,4,2))
  82. copy to zbsz99.txt for f1=a field f10,f9 delimited
  83. use zbmc
  84. run basica as99
  85. case w='3'
  86. clear
  87. a='  '
  88. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  89. read
  90. use zbmc
  91. goto 1
  92. repl z1 with a+'─Ω╕≈╘┬╩┬╣╩┬╩'
  93. skip
  94. repl z1 with '╘┬╖▌'   
  95. skip
  96. repl z1 with '╩┬╣╩┬╩'
  97. copy to zbmc.txt delimited
  98. use ysg
  99. repl all y9 with val(substr(y1,4,2))
  100. repl all y8 with y2*100/y7
  101. copy to zbsz99.txt for y1=a field y9,y8 delimited
  102. run basica as99
  103. case w='4'
  104. clear
  105. a='  '
  106. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  107. read
  108. use zbmc
  109. goto 1
  110. repl z1 with a+'╕≈╘┬╣╩╒╧╞╡╢╚'
  111. skip
  112. repl z1 with '╘┬╖▌'
  113. skip
  114. repl z1 with '╣╩╒╧╞╡╢╚'
  115. copy to zbmc.txt delimited
  116. use ygz
  117. repl all g12 with val(substr(g1,4,2))
  118. repl all g13 with g2/g5
  119. copy to zbsz99.txt for g1=a field g12,g13 delimited
  120. run basica as99
  121. case w='5'
  122. clear
  123. a='  '
  124. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  125. read
  126. use zbmc
  127. goto 1
  128. repl z1 with a+'─Ω╕≈╘┬╣╩╒╧═ú╗·┬╩'
  129. skip
  130. repl z1 with '╘┬╖▌'
  131. skip
  132. repl z1 with '╣╩╒╧═ú╗·┬╩'
  133. copy to zbmc.txt delimited
  134. use ygz
  135. repl all g12 with val(substr(g1,4,2))
  136. repl all g13 with g3/(g3+g6)*100 for g6<>0
  137. repl all g13 with 0 for g3+g6=0
  138. copy to zbsz99.txt for g1=a field g12,g13 delimited
  139. run basica as99
  140. case w='6'
  141. clear
  142. a='  '
  143. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  144. read
  145. use zbmc
  146. goto 1
  147. repl z1 with a+'─Ω╕≈╘┬╔Φ▒╕┐╔└√╙├┬╩'
  148. skip
  149. repl z1 with '╘┬╖▌'
  150. skip
  151. repl z1 with '┐╔└√╙├┬╩'
  152. copy to zbmc.txt delimited
  153. close database
  154. sele 1
  155. use ysg
  156. sele 2
  157. use ygz
  158. do while .not. eof()
  159. d=g1
  160. sele 1
  161. loca for y1=d
  162. e=y3
  163. sele 2
  164. repl g14 with e
  165. skip
  166. enddo
  167. repl all g12 with val(substr(g1,4,2))
  168. repl all g13 with (g7-g3-g4-g14)/g7*100 for g7<>0
  169. repl all g13 with 100 for g7=0
  170. copy to zbsz99.txt for g1=a field g12,g13 delimited
  171. run basica as99
  172. case w='7'
  173. clear
  174. a='  '
  175. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  176. read
  177. use zbmc
  178. goto 1
  179. repl z1 with a+'─Ω╕≈╘┬╔Φ▒╕╙╨╨º└√╙├┬╩'
  180. skip
  181. repl z1 with '╘┬╖▌'
  182. skip
  183. repl z1 with '└√╙├┬╩'
  184. copy to zbmc.txt delimited
  185. close database
  186. sele 1
  187. use ysg
  188. sele 2
  189. use ygz
  190. do while .not. eof()
  191. d=g1
  192. sele 1
  193. loca for y1=d
  194. e=y3
  195. sele 2
  196. repl g14 with e
  197. skip
  198. enddo
  199. repl all g12 with val(substr(g1,4,2))
  200. repl all g13 with g6/(g6+g3+g4+g14)*100 for g3+g4+g14<>0
  201. repl all g13 with 100 for g6+g3+g4+g14=0
  202. copy to zbsz99.txt for g1=a field g12,g13 delimited
  203. run basica as99
  204. case w='8'
  205. clear
  206. a='  '
  207. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  208. read
  209. use zbmc
  210. goto 1
  211. repl z1 with a+'─Ω╕≈╘┬╓≈╥¬╔Φ▒╕═Ω║├┬╩'
  212. skip
  213. repl z1 with '╘┬╖▌'
  214. skip
  215. repl z1 with '═Ω║├┬╩'
  216. copy to zbmc.txt delimited
  217. use ygz
  218. repl all g12 with val(substr(g1,4,2))
  219. repl all g13 with g9/g8*100 for g8<>0
  220. repl all g13 with 100 for g8=0
  221. copy to zbsz99.txt for g1=a field g12,g13 delimited
  222. run basica as99
  223. case w='9'
  224. clear
  225. a='  '
  226. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  227. read
  228. use zbmc
  229. goto 1
  230. repl z1 with a+'─Ω╕≈╘┬╛½┤≤╧í╔Φ▒╕═Ω║├┬╩'
  231. skip
  232. repl z1 with '╘┬╖▌'
  233. skip
  234. repl z1 with '═Ω║├┬╩'
  235. copy to zbmc.txt delimited
  236. use ygz
  237. repl all g12 with val(substr(g1,4,2))
  238. repl all g13 with g11/g10*100 for g10<>0
  239. copy to zbsz99.txt for g1=a field g12,g13 delimited
  240. run basica as99
  241. endcase
  242. enddo
  243. retu
  244.