home *** CD-ROM | disk | FTP | other *** search
- clear
- set talk off
- set device to screen
- close database
- use gh index gh1
- a1=.t.
- do while a1
- clear
- @ 4,10 say "********************╧╡═│╡─╬¼╗ñ**********************"
- @ 5,10 say " ú░ú«═╦│÷ ú▒ú«╣⌐╗⌡╡Ñ╬╗╡─╘÷╝╙"
- @ 6,10 say " ú▓ú«╣⌐╗⌡╡Ñ╬╗╡─╨▐╕─ ú│ú«╣⌐╗⌡╡Ñ╬╗╡─╔╛│²"
- @ 7,10 say " ú┤ú«┐╜▒┤│÷╚δ┐Γ┴≈╦«╒╩ ú╡ú«╔╛│²│÷╚δ┐Γ┴≈╦«╒╩"
- @ 8,10 say "****************************************************"
- wait ' ╟δ╩Σ╚δ╤í╘±║┼(0,1,2,3,4,5):' to w
- do case
- case w='0'
- retu
- case w='1'
- clear
- c=' '
- @ 4,10 say "╟δ╩Σ╚δ╫▄╝╟┬╝╩²" get c pict '999'
- read
- c=val(c)
- do while c<>0
- clear
- a=' '
- b=' '
- a3=.t.
- do while a3
- clear
- @ 3,1 say "╣⌐╗⌡╡Ñ╬╗▒α║┼" get a
- @ 4,1 say "╣⌐╗⌡╡Ñ╬╗├√│╞" get b
- read
- wait '╟δ╤í╘±ú║ú╥╖╡╗╪ú¼ú┌╩²╛▌╒²╚╖ú╗ú╞╫≈╖╧ú╗ú╪╓╪╨▐╕─ú║' to p
- do case
- case p='r'
- exit
- case p='f'
- c=c+1
- exit
- case p='x'
- loop
- case p='z'
- appe blank
- repl gh1 with a,gh2 with b
- exit
- endcase
- enddo a3
- c=c-1
- enddo
- case w='2'
- a1=.t.
- do while a1
- clear
- d=' '
- @ 4,10 say "╟δ╩Σ╚δ╡Ñ╬╗║┼" get d
- read
- seek d
- if eof()
- clear
- @ 4,10 say "╬▐┤╦╡Ñ╬╗,░┤╚╬╥Γ╝ⁿ╖╡╗╪"
- wait ' ' to q
- exit
- endif
- a2=.t.
- do while a2
- clear
- k1=gh1
- k2=gh2
- @ 4,1 say "╡Ñ╬╗▒α║┼" get k1
- @ 5,1 say "╡Ñ╬╗├√│╞" get k2
- read
- wait '╩Σ╚δ╡─╩²╛▌╒²╚╖┬≡(Y/N)' to p
- if p<>'y'
- loop
- endif
- exit
- enddo a2
- repl gh1 with k1,gh2 with k2
- wait '╗╣╨▐╕─┬≡(Y/N)' to p
- if p<>'y'
- exit
- else
- a1=.t.
- endif
- enddo a1
- case w='3'
- a1=.t.
- do while a1
- clear
- e=' '
- @ 4,10 say "╟δ╩Σ╚δ╡Ñ╬╗║┼" get e
- read
- seek e
- if eof()
- @ 4,10 say "╬▐┤╦╡Ñ╬╗,░┤╚╬╥Γ╝ⁿ╖╡╗╪"
- wait ' ' to q
- exit
- endif
- k1=gh1
- k2=gh2
- clear
- @ 4,1 say "╡Ñ╬╗▒α║┼" get k1
- @ 5,1 say "╡Ñ╬╗├√│╞" get k2
- wait '╒µ╥¬╔╛│²┤╦╝╟┬╝┬≡(Y/N)' to p
- if p='y'
- a=recno()
- dele reco a
- pack
- endif
- wait '╗╣╔╛│²┬≡(Y/N)' to p
- if p='y'
- loop
- endif
- exit
- enddo a1
- case w='4'
- clear
- wait '╟δ╜½│÷╚δ┐Γ┴≈╦«╒╩┼╠▓σ╚δú┴╟²╢»╞≈ú¼╫╝▒╕║├║≤░┤╚╬╥Γ╝ⁿ╝┤┐╔' to q
- close database
- copy file cr.dbf to a:cr.dbf
- case w='5'
- clear
- f=' '
- @ 4,10 say "╟δ╩Σ╚δ╓╒╓╣╚╒╞┌" get f pict '99.99.99'
- read
- @ 6,10 say "╒µ╥¬╔╛│²"+f+"╚╒╥╘╟░╡─╩²╛▌┬≡(Y/N)"
- wait ' ' to q
- if q='y'
- use cr
- j1=substr(f,4,2)
- j2=substr(f,7,2)
- j3=substr(f,1,2)
- f=j1+'/'+j2+'/'+j3
- f=ctod(f)
- dele all for f>=l2
- pack
- endif
- endcase
- a1=.t.
- enddo a1
- retu
-