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

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