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

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. sele 1
  6. use gh index gh1
  7. sele 2
  8. use cr
  9. sum l3*l4 to y for l10='r'
  10. a2=.t.
  11. do while a2
  12. clear
  13. @ 1,0 say "╣⌐╗⌡╡Ñ╬╗├√│╞                      ╣⌐╗⌡╜≡╢ε           ╫▄╜≡╢ε            ░┘╖╓▒╚ %"
  14. l=2
  15. sele 1
  16. do while .not. eof()
  17. a=gh1
  18. b=gh2
  19. sele 2
  20. sum l3*l4 to x for l10='r' .and. l6=a
  21. @ l,0 say " "+b
  22. @ l,31 say " "+str(x,10,2)
  23. @ l,50 say " "+str(y,8,2)
  24. z=x*100/y
  25. @ l,70 say " "+str(z,7,2)
  26. sele 1
  27. skip
  28. l=l+1
  29. if .not. eof()
  30. if l>=8
  31. wait '░┤╚╬╥Γ╝ⁿ╝╠╨°'
  32. exit
  33. endif
  34. else
  35. a2=.f.
  36. endif
  37. enddo 
  38. enddo a2
  39. wait '┤≥╙í┬≡(Y/N)' to w
  40. if w<>'y'
  41. close database
  42. retu
  43. endif
  44. clear
  45. @ 4,20 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí"
  46. set cons off
  47. set device to print 
  48. set print on
  49. ? chr(27)+"IJ"
  50. set print off
  51. p=1
  52. sele 1
  53. goto top
  54. a1=.t.
  55. do while a1
  56. @ prow()+1,20 say "╕≈╡Ñ╬╗╠ß╣⌐╗⌡╘┤╡─░┘╖╓╩²"
  57. @ prow()+1,1 say "              "
  58. @ prow()+1,55 say "╡┌"+str(p,2)+"╥│"
  59. @ prow()+1,1 say ì
  60. "================================================================"
  61. @ prow()+1,1 say "|╣⌐╗⌡╡Ñ╬╗├√│╞                  |╣⌐╗⌡╜≡╢ε  |╫▄╜≡╢ε    |░┘╖╓▒╚ % ì
  62. |"
  63. @ prow()+1,1 say ì
  64. "|------------------------------|----------|----------|---------|"
  65. l=6
  66. do while .not. eof() 
  67. a=gh1
  68. b=gh2
  69. sele 2
  70. sum l3*l4 to x for l10='r' .and. l6=a
  71. @ prow()+1,1 say "|"+b
  72. @ prow(),32 say "|"+str(x,10,2)
  73. @ prow(),43 say "|"+str(y,10,2)
  74. c=x*100/y
  75. @ prow(),54 say "|"+str(c,8,2)+" |"
  76. sele 1
  77. skip
  78. l=l+1
  79. if .not. eof()
  80. if l>=50
  81. @ prow()+1,1 say ì
  82. "================================================================"
  83. p=p+1
  84. ejec
  85. exit
  86. else
  87. @ prow()+1,1 say ì
  88. "|------------------------------|----------|----------|---------|"
  89. l=l+1
  90. endif
  91. else
  92. @ prow()+1,1 say ì
  93. "================================================================"
  94. a1=.f.
  95. endif
  96. enddo 
  97. enddo a1
  98. set print on
  99. ? chr(13)
  100. set print off
  101. set device to screen
  102. a1=.t.
  103. close database
  104. set cons on
  105. retu
  106.  
  107.