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

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. sele 1
  6. use cr
  7. sele 2
  8. use bj index bj1
  9. sele 3
  10. use dw index dw1 
  11. a='          '
  12. @ 4,10 say "╟δ╩Σ╚δ╣ñ╫≈┴ε║┼" get a
  13. read
  14. b=val(a)
  15. sele 1
  16. q=0
  17. loca for l7=b .and. l10='c' 
  18. if eof()
  19. @ 4,10 say "┤╦╣ñ╫≈┴ε├╗┴∞▒╕╝■"
  20. @ 7,0 clear
  21. wait '░┤╚╬╥Γ╝ⁿ╖╡╗╪' to w
  22. retu
  23. endif
  24. a1=.t.
  25. do while a1
  26. clear
  27. @ 1,1 say "▒╕╝■▒α║┼  ▒╕╝■├√│╞          ┴∞╙├╚╒╞┌     ┴∞╙├╩²┴┐  ╡Ñ╝█   ì
  28.   ╛¡╩╓╚╦"
  29. l=2
  30. do while .not. eof()
  31. @ l,1 say " "+l1
  32. f=l1
  33. sele 2
  34. seek f
  35. @ l,11 say " "+b2
  36. sele 1
  37. e=dtoc(l2)
  38. j1=substr(e,7,2)
  39. j2=substr(e,1,2)
  40. j3=substr(e,4,2)
  41. e=j1+'.'+j2+'.'+j3
  42. @ l,28 say " "+e
  43. @ l,38 say " "+str(l3,8,2)
  44. @ l,48 say " "+str(l4,8,2)
  45. q=q+l3*l4
  46. @ l,58 say " "+l9
  47. l=l+1
  48. cont
  49. if .not. eof()
  50. if l>=8
  51. wait '░┤╚╬╥Γ╝ⁿ╝╠╨°' to w
  52. l=2
  53. exit
  54. endif
  55. else
  56. a1=.f.
  57. endif
  58. enddo
  59. enddo a1
  60. @ l,1 say "******╫▄╝█╓╡╬¬:"+str(q,10,2)
  61. wait '┤≥╙í┬≡(Y/N)' to w
  62. if w<>'y'
  63. close database
  64. a1=.t.
  65. retu
  66. endif
  67. clear
  68. @ 4,20 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí"
  69. set cons off
  70. set device to print 
  71. set print on
  72. ? chr(27)+"IJ"
  73. set print off
  74. sele 1
  75. loca for l7=b .and. l10='c'                          
  76. p=1
  77. a1=.t.
  78. do while a1
  79. @ prow()+1,25 say " "+a+"╣ñ╫≈┴ε┴∞╙├▒╕╝■╟Θ┐÷"
  80. @ prow()+1,1 say "                  "
  81. @ prow()+1,80 say "╡┌"+str(p,2)+"╥│"
  82. @ prow()+1,1 say ì
  83. "=================================================================ì
  84. ============================="
  85. @ prow()+1,1 say "|▒╕╝■▒α║┼ |▒╕╝■├√│╞        ì
  86. |┴∞╙├╚╒╞┌|┴∞╙├╩²┴┐|╡Ñ╝█    |┴∞╙├╡Ñ╬╗        |╠ß╗⌡╡Ñ║┼    |╛¡╩╓╚╦  |"
  87. @ prow()+1,1 say ì
  88. "|---------|----------------|--------|--------|--------|----------ì
  89. ------|------------|--------|"
  90. l=6
  91. do while .not. eof()
  92. @ prow()+1,1 say "|"+l1
  93. f=l1
  94. sele 2
  95. seek f
  96. @ prow(),11 say "|"+b2
  97. sele 1
  98. e=dtoc(l2)
  99. j1=substr(e,7,2)
  100. j2=substr(e,1,2)
  101. j3=substr(e,4,2)
  102. e=j1+'.'+j2+'.'+j3
  103. @ prow(),28 say "|"+e
  104. @ prow(),37 say "|"+str(l3,8,2)
  105. @ prow(),46 say "|"+str(l4,8,2)
  106. f=l6
  107. sele 3
  108. seek f
  109. @ prow(),55 say "|"+dw2
  110. sele 1
  111. @ prow(),72 say "|"+l8
  112. @ prow(),85 say "|"+l9+"|"
  113. l=l+1
  114. cont
  115. if .not. eof()
  116. if l>=50 
  117. @ prow()+1,1 say ì
  118. "=================================================================ì
  119. ============================"
  120. p=p+1
  121. ejec
  122. exit
  123. else
  124. @ prow()+1,1 say ì
  125. "|---------|----------------|--------|--------|--------|----------ì
  126. ------|------------|--------|"
  127. l=l+1
  128. endif
  129. else
  130. @ prow()+1,1 say ì
  131. "=================================================================ì
  132. =============================" 
  133. @ prow()+1,1 say "******╫▄╝█╬¬:"+str(q,10,2)
  134. a1=.f.
  135. endif
  136. enddo 
  137. enddo a1
  138. set print on
  139. ? chr(13)
  140. set print off
  141. set device to screen
  142. a1=.t.
  143. close database
  144. set cons on
  145. retu
  146.  
  147.