home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b077 / 1.img / SBGL.ZIP / TX5.PRG < prev    next >
Encoding:
Text File  |  1980-01-01  |  3.0 KB  |  171 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. @ 2,12 say "**********************╗¡╔╚╨╬═╝ú¿─Ωú⌐****************"
  9. @ 3,12 say " ú░ú«═╦│÷                         ú▒ú«┤≤╨▐╖╤╙├"
  10. @ 4,12 say " ú▓ú«╬¼╨▐(│²┤≤╨▐═Γ)╖╤╙├           ú│ú«╚½▓┐╬¼╨▐╖╤╙├"
  11. @ 5,12 say "****************************************************"
  12. wait '            ╟δ╩Σ╚δ╤í╘±║┼(0,1,2,3):' to w
  13. set exac off
  14. do case 
  15. case w='0'
  16. retu
  17. case w='1'
  18. clear
  19. a='  '
  20. @ 4,10 say "╟δ╩Σ╚δ─Ω╖▌" get a pict '99'
  21. read
  22. p1=a
  23. clear
  24. @ 4,15 say "╒²╘┌╝╞╦πú¼╟δ╔╘║≥úí"
  25. set cons off
  26. a='01'+'/'+'01'+'/'+a
  27. a=ctod(a)
  28. b=a+365
  29. use jf 
  30. sum jf11,jf12,jf13,jf14,jf15 to x1,x2,x3,x4,x5 for jf3>=a .and. ì
  31. jf3<=b .and. jf2='1'
  32. x=x1+x2+x3+x4+x5
  33. if x=0
  34. clear
  35. @ 4,15 say "▒╛─Ω╢╚╬▐┤≤╨▐╖╤╙├╓º│÷ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí"
  36. wait '   '
  37. clos data
  38. exit
  39. endif
  40. x1=x1/x
  41. x2=x2/x
  42. x3=x3/x
  43. x4=x4/x
  44. x5=x5/x
  45. use zbmc1
  46. repl z1 with '▒╕╝■╖╤',z2 with x1
  47. skip
  48. repl z1 with '▓─┴╧╖╤',z2 with x2
  49. skip
  50. repl z1 with '╣ñ╩▒╖╤',z2 with x3
  51. skip
  52. repl z1 with '═Γ╬»╖╤',z2 with x4
  53. skip
  54. repl z1 with '╞Σ╦ⁿ╖╤',z2 with x5
  55. copy to zbsz55.txt delimited
  56. close data
  57. use zbmc
  58. repl z1 with p1+'─Ω┤≤╨▐╖╤╙├╟Θ┐÷'
  59. copy to zbmc.txt delimited
  60. set cons on
  61. run basica as55
  62. case w='2'
  63. use jf
  64. clear
  65. a='  '
  66. @ 3,10 say "╟δ╩Σ╚δ─Ω╖▌" get a pict '99'
  67. read
  68. clear
  69. @ 4,15 say "╒²╘┌╝╞╦πú¼╟δ╔╘║≥úí"
  70. set cons off
  71. p1=a
  72. a='01'+'/'+'01'+'/'+a
  73. a=ctod(a)
  74. b=a+365
  75. sum jf11,jf12,jf13,jf14,jf15 to x1,x2,x3,x4,x5 for jf3>=a .and. ì
  76. jf3<=b .and. jf2='1'
  77. use fyl
  78. a=p1+'.01'
  79. b=p1+'.12'
  80. sum f4,f5,f6,f7,f8 to y1,y2,y3,y4,y5 for f1>=a .and. f1<=b
  81. x1=y1-x1
  82. x2=y2-x2
  83. x3=y3-x3
  84. x4=y4-x4
  85. x5=y5-x5
  86. x6=x1+x2+x3+x4+x5
  87. if x6<=0
  88. clear
  89. @ 4,15 say "▒╛─Ω╢╚╬▐╬¼╨▐╖╤╙├╓º│÷ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí"
  90. wait '  ' 
  91. clos data
  92. retu
  93. endif
  94. x3=x3/x6    
  95. x2=x2/x6    
  96. x1=x1/x6    
  97. x4=x4/x6    
  98. x5=x5/x6    
  99. use zbmc1
  100. repl z1 with '╣ñ╩▒╖╤',z2 with x1
  101. skip
  102. repl z1 with '▓─┴╧╖╤',z2 with x2
  103. skip
  104. repl z1 with '▒╕╝■╖╤',z2 with x3
  105. skip
  106. repl z1 with '═Γ╝╙╣ñ╖╤',z2 with x4
  107. skip
  108. repl z1 with '╞Σ╦ⁿ╖╤╙├',z2 with x5
  109. copy to zbsz55.txt delimited
  110. use zbmc
  111. repl z1 with p1+'─Ω(│²┤≤╨▐═Γ)╡─╬¼╨▐╖╤╙├╟Θ┐÷'
  112. copy to zbmc.txt delimited
  113. set cons on
  114. run basica as55
  115. close database
  116. case w='3'
  117. clear
  118. a='  '
  119. @ 4,20 say "╟δ╩Σ╚δ─Ω╖▌ú║" get a pict '99'
  120. read
  121. p1=a
  122. clear
  123. @ 4,15 say "╒²╘┌╝╞╦πú¼╟δ╔╘║≥úí"
  124. set cons off
  125. a=a+'.'+'01'
  126. b=p1+'.'+'12'
  127. sele 3
  128. use zbmc
  129. goto 1
  130. repl z1 with p1+'─Ω(╚½▓┐)╬¼╨▐╖╤╙├╟Θ┐÷'
  131. copy to zbmc.txt delimited
  132. sele 1
  133. use zbmc1
  134. sele 2
  135. use fyl 
  136. sum f3 to x for f1>=a .and. f1<=b
  137. l=4
  138. if x=0
  139. clear
  140. @ 4,15 say "▒╛─Ω╢╚╬▐╬¼╨▐╖╤╙├╓º│÷ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí"
  141. wait '  '
  142. clos data
  143. retu
  144. endif
  145. sum f4,f5,f6,f7,f8 to x1,x2,x3,x4,x5 for f1>=a .and. f1<=b
  146. f=x1+x2+x3+x4+x5
  147. x1=x1/f
  148. x2=x2/f
  149. x3=x3/f
  150. x4=x4/f
  151. x5=x5/f
  152. sele 1
  153. goto 1
  154. repl z1 with '╣ñ╩▒╖╤',z2 with x1       
  155. skip
  156. repl z1 with '▓─┴╧╖╤',z2 with x2
  157. skip
  158. repl z1 with '▒╕╝■╖╤',z2 with x3
  159. skip
  160. repl z1 with '═Γ╝╙╖╤',z2 with x4
  161. skip
  162. repl z1 with '╞Σ╦ⁿ╖╤',z2 with x5
  163. copy to zbsz55.txt delimited     
  164. run basica as55
  165. close database
  166. endcase
  167. a1=.t.
  168. enddo a1
  169. retu
  170.  
  171.