home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b077 / 1.img / SBGL.ZIP / FX6.PRG < prev    next >
Encoding:
Text File  |  1979-12-31  |  2.7 KB  |  186 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. e='    '
  10. d='        '
  11. @ 4,10 say "╟δ╩Σ╚δ╜±╠∞╡─╚╒╞┌" get d pict '99.99.99'
  12. @ 5,10 say "╤í╘±╡─╓▄╫¬╞┌" get e pict '9999'
  13. read
  14. e=val(e)
  15. j1=substr(d,4,2) 
  16. j2=substr(d,7,2)
  17. j3=substr(d,1,2)
  18. d=j1+'/'+j2+'/'+j3
  19. d=ctod(d)
  20. goto top
  21. a1=.t.
  22. do while a1
  23. clear
  24. @ 1,1 say "▒╕╝■▒α║┼  ▒╕╝■├√│╞           ╤í╘±╡─╓▄╫¬╞┌      ì
  25. ╩╡╝╩╡─╓▄╫¬╞┌  ì
  26.     │¼│÷╠∞╩²"
  27. l=2
  28. do while .not. eof()
  29. a=b1
  30. sele 1
  31. loca for l1=a .and. l10='c'
  32. p=0
  33. t=0
  34. do while .not. eof()
  35. b=l2
  36. t=t+1
  37. cont
  38. if .not. eof()
  39. c=b
  40. endif
  41. if t=1 .and. eof()
  42. sele 2
  43. c=b14
  44. sele 1
  45. endif
  46. p=1
  47. enddo
  48. if p=0  
  49. b=d
  50. sele 2
  51. c=b14
  52. sele 1
  53. endif
  54. if b-c>=e
  55. sele 2
  56. @ l,1 say " "+b1
  57. @ l,11 say " "+b2
  58. @ l,28 say " "+str(e,4)
  59. f=b-c
  60. @ l,50 say " "+str(f,8)
  61. f=f-e
  62. @ l,65 say " "+str(f,8)
  63. l=l+1
  64. endif
  65. sele 2
  66. skip
  67. if .not. eof()
  68. if l>=8
  69. wait       '░┤╚╬╥Γ╝ⁿ╝╠╨°' to w
  70. exit
  71. endif
  72. else
  73. a1=.f.
  74. endif
  75. enddo
  76. enddo a1
  77. wait '┤≥╙í┬≡(Y/N)' to w
  78. if w<>'y'
  79. a1=.t.
  80. close database
  81. retu
  82. endif
  83. clear
  84. @ 4,20 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí"
  85. set cons off
  86. set device to print 
  87. set print on
  88. ? chr(27)+"IJ"
  89. set print off
  90. sele 2
  91. goto top
  92. p=1
  93. a1=.t.
  94. do while a1
  95. @ prow()+1,40 say "╓▄╫¬╞┌│ñ╡─▒╕╝■"
  96. @ prow()+1,1 say "                     "
  97. @ prow()+1,72 say "╡┌"+str(p,2)+"╥│"
  98. @ prow()+1,1 say ì
  99. "=================================================================ì
  100. ================"
  101. @ prow()+1,1 say "|▒╕╝■▒α║┼ |▒╕╝■├√│╞        |╡Ñ╝█    |╩²┴┐    ì
  102. |╤í╘±╡─╓▄╫¬╞┌|╩╡╝╩╡─╓▄╫¬╞┌|│¼│÷╠∞╩²|"
  103. @ prow()+1,1 say ì
  104. "|---------|----------------|--------|--------|------------|------ì
  105. ------|--------|"
  106. l=6
  107. do while .not. eof()
  108. a=b1
  109. sele 1
  110. loca for l1=a .and. l10='c'
  111. if eof()
  112. b=d
  113. sele 2
  114. c=b14
  115. sele 1
  116. endif
  117. t=0
  118. do while .not. eof()
  119. t=t+1
  120. b=l2
  121. cont
  122. if t=1 .and. eof()
  123. sele 2
  124. c=b14
  125. sele 1
  126. endif
  127. if .not. eof()
  128. c=b
  129. endif
  130. enddo
  131. sele 2
  132. t1=1
  133. if b-c>=e
  134. @ prow()+1,1 say "|"+b1
  135. @ prow(),11 say "|"+b2
  136. @ prow(),28 say "|"+str(b4,8,2)
  137. t1=2
  138. @ prow(),37 say "|"+str(b5,8,2)
  139. @ prow(),46 say "|"+str(e,4)
  140. f=b-c
  141. @ prow(),59 say "|"+str(f,4)
  142. f=f-e
  143. @ prow(),72 say "|"+str(f,4)+"    |"
  144. l=l+1
  145. sele 2
  146. skip
  147. if .not. eof()
  148. if l>=50 
  149. @ prow()+1,1 say ì
  150. "=================================================================ì
  151. ==============="
  152. p=p+1
  153. ejec
  154. exit
  155. else
  156. @ prow()+1,1 say ì
  157. "|---------|----------------|--------|--------|------------|------ì
  158. ------|--------|"
  159. l=l+1
  160. endif
  161. else
  162. @ prow()+1,1 say ì
  163. "=================================================================ì
  164. ================"  
  165. a1=.f.
  166. endif
  167. endif
  168. if t1=1
  169. sele 2
  170. skip
  171. endif
  172. if eof()
  173. a1=.f.
  174. endif
  175. enddo
  176. enddo a1
  177. set print on
  178. ? chr(13)
  179. set print off
  180. set device to screen
  181. a1=.t.
  182. close database
  183. set cons on
  184. retu
  185.  
  186.