*set defa to D:\saywell\ver200006\pic set defa to C:\saywell\www\ver20000815 *wanttype='Manufacturer' *wanttype='Approval' *wanttype='Aircraft' wanttype='All' wanttype=upper(alltrim(wanttype)) close data maxp=1 outrdir='C:\saywell\www\ver20000815\' use C:\saywell\www\ver20000815\genpage in 0 excl order aircftname if wanttype='ALL' select rectype,count(*) from genpage; group by 1 order by 1; into cursor recctype else select rectype,count(*) from genpage; where rectype=wanttype; or rectype='000'+wanttype; group by 1 order by 1; into cursor recctype endif for i=1 to reccount('recctype') select recctype goto i if !left(recctype.rectype,3)='000' outdir=alltrim(outrdir)+alltrim(recctype.rectype)+'\' else outdir=alltrim(outrdir)+substr(alltrim(recctype.rectype),4)+'\' do text_on with outdir+alltrim(recctype.rectype)+".htm" \
do text_off
endif
select genpage
set safety off
*do text_on with outdir+"ALLAC.htm"
select genpage
goto top
*scan for rectype=upper(alltrim(wanttype))
*scan for aircftname="ATR 42"
scan for rectype=recctype.rectype
dot_pos=at('.',picname)
if dot_pos=0
* htmlname=picname
else
* htmlname=left(picname,dot_pos-1)+".htm"
endif
do text_on with outdir+htmlname
\
\
\
\R.F.SAYWELL CANADA
\
\
\
\
\
\
\| \ |