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

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. sele 1
  6. use bs 
  7. set index to bs1
  8. sele 2
  9. use sb
  10. set index to sb1
  11. a='         '
  12. @ 4,10 say "╟δ╩Σ╚δ▒╕╝■║┼" get a
  13. read
  14. clear
  15. t=0
  16. sele 1
  17. @ 1,1 say "╔Φ▒╕▒α║┼  ╔Φ▒╕├√│╞        ╨═║┼            ì
  18. ╙╡╙╨┤╦▒╕╝■╡─╕÷╩²   ▒╕╝■└α▒≡"
  19. seek a        
  20. l=2
  21. do while s2=a .and. .not. eof()
  22. b=s1
  23. sele 2
  24. loca for sb4=b
  25. do while .not. eof()
  26. @ l,1 say " "+sb1
  27. @ l,11 say " "+sb3
  28. @ l,27 say " "+sb4
  29. sele 1
  30. @ l,44 say " "+str(s3,8,2)
  31. t=t+s3
  32. set exac on
  33. do case 
  34. case s4='g'
  35. d='╣╪╝ⁿ╝■'
  36. case s4='y'
  37. d='╥╫╦≡╝■'
  38. case s4='yg'
  39. d='╥╫╦≡,╣╪╝ⁿ╝■'
  40. otherwise
  41. d='      '
  42. endcase
  43. @ l,60 say " "+d
  44. l=l+1
  45. sele 2
  46. cont
  47. if .not. eof()
  48. if l>=8
  49. l=2
  50. wait '░┤ú╥╝ⁿ╖╡╗╪ú¼░┤╞Σ╦ⁿ╝ⁿ╝╠╨°úí' to w
  51. if w='r' .or. w='R'
  52. clos data
  53. retu
  54. endif
  55. clear
  56. @ 1,1 say "╔Φ▒╕▒α║┼  ╔Φ▒╕├√│╞         ╨═║┼            ì
  57. ┤╦▒╕╝■╡─╙╡╙╨┴┐  ▒╕╝■└α▒≡"
  58. endif
  59. endif
  60. enddo
  61. sele 1
  62. skip 
  63. enddo
  64. @ l,1 say "******╫▄╝■╩²╬¬:"+str(t,8,2)
  65. wait '┤≥╙í┬≡(Y/N)' to w
  66. if w<>'y'
  67. close database
  68. retu
  69. endif
  70. clear
  71. @ 4,20 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí"
  72. set cons off
  73. t=0 
  74. set device to print 
  75. set print on
  76. ? chr(27)+"IJ"
  77. set print off
  78. sele 1
  79. seek a
  80. @ prow()+1,20 say " "+a+"▒╕╝■╫░╘┌╥╘╧┬╔Φ▒╕╔╧"
  81. @ prow()+1,1 say "                    "
  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 s2=a .and. .not. eof()
  92. b=s1
  93. sele 2
  94. loca for sb4=b
  95. do while .not. eof() 
  96. @ prow()+1,1 say "|"+sb1
  97. @ prow(),11 say "|"+sb2
  98. @ prow(),28 say "|"+sb4
  99. @ prow(),45 say "|"+sb29
  100. sele 1
  101. @ prow(),58 say "|"+str(s3,8,2)
  102. t=t+s3
  103. set exac on
  104. do case 
  105. case s4='g'
  106. d='   ╣╪╝ⁿ╝■  '
  107. case s4='y'
  108. d='   ╥╫╦≡╝■  '
  109. case s4='yg'
  110. d='╥╫╦≡,╣╪╝ⁿ╝■'
  111. otherwise
  112. d='           '
  113. endcase
  114. @ prow(),75 say "|"+d+"|"
  115. sele 2
  116. cont
  117. if .not. eof()
  118. @ prow()+1,1 say "|---------|----------------|----------------|------------|-------ì
  119. ---------|-----------|"
  120. endif
  121. enddo
  122. sele 1
  123. skip
  124. if eof() .or. s2<>a
  125. @ prow()+1,1 say ì
  126. "=================================================================ì
  127. ======================"
  128. else
  129. @ prow()+1,1 say ì
  130. "|---------|----------------|----------------|------------|-------ì
  131. ---------|-----------|"
  132. endif
  133. enddo
  134. @ prow()+1,1 say "******╫▄╝■╩²╬¬:"+str(t,8,2)
  135. set print on
  136. ? chr(13)
  137. set print off
  138. set device to screen
  139. a1=.t.
  140. set cons on
  141. retu
  142.  
  143.