home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a056 / 4.ddi / MAIN / YQMIS016.PRG < prev    next >
Encoding:
Text File  |  1993-11-01  |  3.4 KB  |  220 lines

  1. *******************************************************
  2. * ╬─╝■├√│╞: YQMIS016
  3. * │╠╨≥╔Φ╝╞: └ε▒■╥╗                
  4. * ▒α│╠╚╒╞┌: 93.11.01   20:07:29
  5. *******************************************************
  6. set date ansi
  7. set safe off
  8. close data
  9. set color to w/1,,
  10. clear
  11. do smggp with '╟δ  ╔╘  ║≥ !',10,34
  12. set color to w/1,,
  13. sele A
  14. use GZZK alia A
  15. index on ╡Ñ╬╗ to GZZK uniq
  16. sele B
  17. use GZTJ alia B
  18. priv oflbds
  19. oflbds='╡Ñ╬╗'
  20. set proc to YQMIS016
  21. sele 1
  22. copy to otj.ols
  23. close inde
  24. sele 2
  25. zap
  26. appe from otj.ols
  27. dele file otj.ols
  28. set stat on
  29. @ 23,0 clear to 24,79
  30. do smggp with '╒²╘┌╜°╨╨═│╝╞,╟δ╔╘║≥!!',10,24
  31. @ 23,0 clear to 24,79
  32. do qh with '','╗∙▒╛╣ñ╫╩','╗∙▒╛╣ñ╫╩'
  33. @ 23,0 clear to 24,79
  34. do qjls with '','╚╦╩²'
  35. @ 23,0 clear to 24,79
  36. do qh with '','╙ª╖ó║╧╝╞','╙ª╖ó║╧╝╞'
  37. @ 23,0 clear to 24,79
  38. do qh with '','╖┐╫Γ║╧╝╞','╖┐╫Γ'
  39. @ 23,0 clear to 24,79
  40. do qh with '','╦«╖╤║╧╝╞','╦«╖╤'
  41. @ 23,0 clear to 24,79
  42. do qh with '','╜▒╜≡║╧╝╞','╜▒╜≡'
  43. @ 23,0 clear to 24,79
  44. do qh with '','╩╡╖ó╜≡╢ε','╩╡╖ó╜≡╢ε'
  45. @ 23,0 clear to 24,79
  46. do qh with '','╡τ╖╤║╧╝╞','╡τ╖╤'
  47. set stat off
  48. return
  49. *****************
  50. * ╟≤╝╟┬╝╕÷╩²    *
  51. *****************
  52. proc qjls
  53. para otj,ojgzd
  54. if len(trim(otj))=0
  55. otj='.t.'
  56. endif
  57. priv qjls,ofl
  58. if len(oflbds)=0
  59. sele 1
  60. count to qjls for &otj
  61. sele 2
  62. repl &ojgzd with qjls
  63. else
  64. sele 2
  65. goto top
  66. do while .not.eof()
  67. ofl=&oflbds
  68. sele 1
  69. set filt to ofl=&oflbds
  70. count to qjls for &otj
  71. sele 2
  72. repl &ojgzd with qjls
  73. skip
  74. enddo
  75. endif
  76. return
  77. *****************
  78. * ╟≤║═          *
  79. *****************
  80. proc qh
  81. para otj,ojgzd,otjzd
  82. if len(trim(otj))=0
  83. otj='.t.'
  84. endif
  85. priv q,ofl
  86. if len(oflbds)=0
  87. sele 1
  88. sum &otjzd to q for &otj
  89. sele 2
  90. repl &ojgzd with q
  91. else
  92. sele 2
  93. goto top
  94. do while .not.eof()
  95. ofl=&oflbds
  96. sele 1
  97. set filt to ofl=&oflbds
  98. sum &otjzd to q for &otj
  99. sele 2
  100. repl &ojgzd with q
  101. skip
  102. enddo
  103. endif
  104. return
  105. *****************
  106. * ╟≤╞╜╛∙╓╡      *
  107. *****************
  108. proc qpjz
  109. para otj,ojgzd,otjzd
  110. if len(trim(otj))=0
  111. otj='.t.'
  112. endif
  113. priv q,ofl
  114. if len(oflbds)=0
  115. sele 1
  116. aver &otjzd to q for &otj
  117. sele 2
  118. repl &ojgzd with q
  119. else
  120. sele 2
  121. goto top
  122. do while .not.eof()
  123. ofl=&oflbds
  124. sele 1
  125. set filt to ofl=&oflbds
  126. aver &otjzd to q for &otj
  127. sele 2
  128. repl &ojgzd with q
  129. skip
  130. enddo
  131. endif
  132. return
  133. *****************
  134. * ╟≤╫ε┤≤╓╡      *
  135. *****************
  136. proc qzdz
  137. para otj,ojgzd,otjzd
  138. if len(trim(otj))=0
  139. otj='.t.'
  140. endif
  141. priv q,ofl
  142. if len(oflbds)=0
  143. sele 1
  144. goto top
  145. q=-999999999
  146. do while .not.eof()
  147. if &otj
  148. q=iif(q<&otjzd,&otjzd,q)
  149. endif
  150. skip
  151. enddo
  152. sele 2
  153. repl &ojgzd with q
  154. else
  155. sele 2
  156. goto top
  157. do while .not.eof()
  158. ofl=&oflbds
  159. sele 1
  160. set filt to ofl=&oflbds
  161. goto top
  162. q=-999999999
  163. do while .not.eof()
  164. if &otj
  165. q=iif(q<&otjzd,&otjzd,q)
  166. endif
  167. skip
  168. enddo
  169. sele 2
  170. repl &ojgzd with q
  171. skip
  172. enddo
  173. endif
  174. return
  175. *****************
  176. * ╟≤╫ε╨í╓╡      *
  177. *****************
  178. proc qzxz
  179. para otj,ojgzd,otjzd
  180. if len(trim(otj))=0
  181. otj='.t.'
  182. endif
  183. priv q,ofl
  184. if len(oflbds)=0
  185. sele 1
  186. goto top
  187. q=999999999
  188. do while .not.eof()
  189. if &otj
  190. q=iif(q>&otjzd,&otjzd,q)
  191. endif
  192. skip
  193. enddo
  194. sele 2
  195. repl &ojgzd with q
  196. else
  197. sele 2
  198. goto top
  199. do while .not.eof()
  200. ofl=&oflbds
  201. sele 1
  202. set filt to ofl=&oflbds
  203. goto top
  204. q=999999999
  205. do while .not.eof()
  206. if &otj
  207. q=iif(q>&otjzd,&otjzd,q)
  208. endif
  209. skip
  210. enddo
  211. sele 2
  212. repl &ojgzd with q
  213. skip
  214. enddo
  215. endif
  216. return
  217.  
  218. *******************************************************
  219. * ▒α│╠╚╒╞┌: 93.11.01   20:07:30
  220. *******************************************************