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

  1. clear
  2. set talk off 
  3. set device to screen
  4. close database
  5. sele 1
  6. use bj
  7. sele 2
  8. use bh
  9. sele 1
  10. loca for b5-b6>0
  11. if eof()
  12. @ 4,15 say "╬▐╣²╩ú▒╕╝■ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí"
  13. wait ' ' to w
  14. retu
  15. endif
  16. ? "▒╕╝■▒α║┼   ▒╕╝■├√│╞      ╡▒╟░┐Γ┤µ ╬┤╜╗╢⌐╗⌡  ╫ε╕▀┐Γ┤µ   ╡Ñ╝█    ╣²╩ú╩²ì
  17. ┴┐   ╝█╓╡"
  18. l=2
  19. x=0
  20. do while .not. eof()
  21. y=0
  22. j=b1  
  23. sele 2
  24. loca for h1=j .and. h7>h10
  25. if .not. eof()
  26. y=h7-h10
  27. endif
  28. sele 1
  29. a=b5-b6+y
  30. if a>0
  31. @ l,1 say " "+b1  
  32. @ l,11 say " "+b2  
  33. @ l,24 say " "+str(b5,8,2)
  34. @ l,33 say " "+str(y,8,2)
  35. @ l,42 say " "+str(b6,8,2)
  36. @ l,51 say " "+str(b4,8,2)
  37. @ l,60 say " "+str(a,8,2)
  38. b=a*b4
  39. @ l,69 say " "+str(b,8,2)
  40. x=x+b
  41. l=l+1
  42. endif
  43. if l=9
  44. l=0
  45. wait '                                                             ░┤╚╬╥Γ╝ⁿ╝╠╨°' to w
  46. clear
  47. @ l,1 say "▒╕╝■▒α║┼   ▒╕╝■├√│╞     ╡▒╟░┐Γ┤µ ╬┤╜╗╢⌐╗⌡   ╫ε╕▀┐Γ┤µ   ╡Ñ╝█    ì
  48. ╣²╩ú╩²┴┐  ╝█╓╡"
  49. l=l+1
  50. endif
  51. cont
  52. enddo
  53. @ l,1 say "╫▄╝█╓╡╬¬ "+str(x,8,2)+"╘¬"
  54. wait '            ┤≥╙í┬≡(y/n)  ' to w
  55. if w<>'y' 
  56. close database
  57. retu 
  58. endif
  59. clear
  60. @ 4,20 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí"
  61. set cons off
  62. set device to print 
  63. set print on 
  64. ? chr(27)+"IJ"
  65. set print off
  66. r=1
  67. sele 1
  68. loca for b5>b6
  69. a1=.t.
  70. do while a1
  71. @ prow()+1,1 say "                        ╣² ╩ú ▒╕ ╝■ ╡Ñ                 ì
  72. "
  73. @ prow()+1,1 say "                          "
  74. @ prow()+1,70 say "(╡┌"+str(r,2)+"╥│)"
  75. @ prow()+1,1 say "===================================================================================="
  76. @ prow()+1,1 say "|▒╕╝■▒α║┼ |▒╕  ╝■  ├√  │╞  |╡▒╟░┐Γ┤µ|╢⌐╗⌡╬┤╜╗|╫ε╕▀┐Γ┤µ|╡Ñ  ╝█ ì
  77.  |╣²ì
  78.   ╩ú┴┐|╝█      ╕±|"
  79. @ prow()+1,1 say ì
  80. "|---------|----------------|--------|--------|--------|--------|-----ì
  81. ---|-------ì
  82. ---|"
  83. l=5
  84. a=0
  85. do while .not. eof()
  86. y=0
  87. j=b1  
  88. sele 2
  89. loca for h1=j .and. h7>h10
  90. y=h7-h10
  91. sele 1
  92. z=b4
  93. a1=b5-b6+y
  94. if a1>0
  95. b=z*a1
  96. a=a+b
  97. @ prow()+1,1 say "|"+b1            
  98. @ prow(),11 say "|"+b2  
  99. @ prow(),28 say "|"+str(b5,8,2)
  100. @ prow(),37 say "|"+str(y,8,2)
  101. @ prow(),46 say "|"+str(b6,8,2)
  102. @ prow(),55 say "|"+str(b4,8,2)
  103. @ prow(),64 say "|"+str(a1,8,2)    
  104. @ prow(),73 say "|"+str(b,10,2)+"|"
  105. l=l+1
  106. cont
  107. endif
  108. if .not. eof()
  109. if l>=54
  110. @ prow()+1,1 say ì
  111. "=================================================================ì
  112. ==================="
  113. ejec
  114. r=r+1
  115. exit
  116. else
  117. @ prow()+1,1 say ì
  118. "|---------|----------------|--------|--------|--------|--------|-ì
  119. ----ì
  120. ---|----------|"
  121. l=l+1
  122. endif
  123. else
  124. @ prow()+1,1 say ì
  125. "=================================================================ì
  126. ==================="
  127. a1=.f.
  128. endif
  129. enddo  
  130. enddo a1
  131. @ prow()+1,1 say "╫▄╝█╓╡╬¬ "+str(a,8,2)+"╘¬"
  132. set print on
  133. ? chr(13)
  134. close database
  135. set print off
  136. set device to screen
  137. a1=.t.
  138. set cons on
  139. return
  140.  
  141.  
  142.  
  143.  
  144.