home *** CD-ROM | disk | FTP | other *** search
- clear
- set talk off
- set device to screen
- close database
- sele 1
- use yhf
- sele 2
- use yh index yh2
- sele 3
- use yh1
- dele all
- pack
- sele 4
- use sb index sb1
- a=' '
- p150=' '
- cc=' '
- @ 4,10 say "╟δ╩Σ╚δ╓╒╓╣╚╒╞┌" get a pict '99.99.99'
- @ 5,10 say "╫ε╢╠╗╗╙═╖┤└í╚╒╞┌" get p150 pict '999'
- @ 6,10 say "╢¼╝╛╡─╫ε╢╠╩▒╝Σ" get cc pict '999'
- read
- sele 1
- p150=val(p150)
- cc=val(cc)
- copy to yhf1 for yhf6>=p150 field yhf1,yhf2,yhf3
- use yhf1
- clear
- @ 4,18 say "╒²╘┌╝╞╦πú¼╟δ╔╘║≥úí"
- set cons off
- j1=substr(a,4,2)
- j2=substr(a,7,2)
- j3=substr(a,1,2)
- a=j1+'/'+j2+'/'+j3
- a=ctod(a)
- p160=a-365
- sele 4
- do while .not. eof()
- b=sb1
- c=sb4
- sele 2
- seek c
- do while c=yh1 .and. .not. eof()
- d=yh12
- e=yh2
- p1=yh5
- p2=yh6
- p4=yh13
- p7=yh3
- sele 1
- loca for b=yhf1 .and. e=yhf2
- p3=yhf3
- do while p3+d<=a
- p3=p3+d
- sele 3
- p5=month(p3)
- if p5>=4 .and. p5<=9
- if p1<>' '
- loca for y1=p1
- if eof()
- appe blank
- repl y1 with p1,y2 with p4
- else
- repl y2 with y2+p4
- endif
- else
- loca for y1=p2
- if eof()
- appe blank
- repl y1 with p2,y2 with p4
- else
- repl y2 with y2+p4
- endif
- endif
- else
- if p2<>' '
- loca for y1=p2
- if eof()
- appe blank
- repl y1 with p2,y2 with p4
- else
- repl y2 with y2+p4
- endif
- else
- loca for y1=p1
- if eof()
- appe blank
- repl y1 with p1,y2 with p4
- else
- repl y2 with y2+p4
- endif
- endif
- endif
- enddo
- sele 2
- skip
- enddo
- sele 4
- skip
- enddo
- do yhc.prg
- set cons on
- do yh7.prg
- retu
-
-
-