[1]"endif
else
ifCurrentPage=""then
CurrentPage=1
else
CurrentPage=Cint(CurrentPage)
endif
pages=ContentLen\MaxPerPage_Content
ifMaxPerPage_Content*pagespages=pages+1
endif
lngBound=MaxPerPage_Content'最大误差范围
ifCurrentPage<1thenCurrentPage=1
ifCurrentPage>pagesthenCurrentPage=pages
dimlngTemp
dimlngTemp1,lngTemp1_1,lngTemp1_2,lngTemp1_1_1,lngTemp1_1_2,lngTemp1_1_3,lngTemp1_2_1,lngTemp1_2_2,lngTemp1_2_3
dimlngTemp2,lngTemp2_1,lngTemp2_2,lngTemp2_1_1,lngTemp2_1_2,lngTemp2_2_1,lngTemp2_2_2
dimlngTemp3,lngTemp3_1,lngTemp3_2,lngTemp3_1_1,lngTemp3_1_2,lngTemp3_2_1,lngTemp3_2_2
dimlngTemp4,lngTemp4_1,lngTemp4_2,lngTemp4_1_1,lngTemp4_1_2,lngTemp4_2_1,lngTemp4_2_2
dimlngTemp5,lngTemp5_1,lngTemp5_2
dimlngTemp6,lngTemp6_1,lngTemp6_2
ifCurrentPage=1then
BeginPoint=1
else
BeginPoint=MaxPerPage_Content*(CurrentPage-1)+1
lngTemp1_1_1=instr(BeginPoint,strContent,"",1)
lngTemp1_1_2=instr(BeginPoint,strContent,"",1)
lngTemp1_1_3=instr(BeginPoint,strContent,"",1)
iflngTemp1_1_1>0then
lngTemp1_1=lngTemp1_1_1
elseiflngTemp1_1_2>0then
lngTemp1_1=lngTemp1_1_2
elseiflngTemp1_1_3>0then
lngTemp1_1=lngTemp1_1_3
else
lngTemp1_1=0
endif
lngTemp1_2_1=instr(BeginPoint,strContent,"
lngTemp1_2_2=instr(BeginPoint,strContent,"
lngTemp1_2_3=instr(BeginPoint,strContent,"
iflngTemp1_2_1>0then
lngTemp1_2=lngTemp1_2_1
elseiflngTemp1_2_2>0then
lngTemp1_2=lngTemp1_2_2
elseiflngTemp1_2_3>0then
lngTemp1_2=lngTemp1_2_3
else
lngTemp1_2=0
endif
iflngTemp1_1=0andlngTemp1_2=0then
lngTemp1=BeginPoint
else
iflngTemp1_1>lngTemp1_2then
lngtemp1=lngTemp1_2
else
lngTemp1=lngTemp1_1+8
endif
endif
lngTemp2_1_1=instr(BeginPoint,strContent,"
",1)lngTemp2_1_2=instr(BeginPoint,strContent,"
",1)iflngTemp2_1_1>0then
lngTemp2_1=lngTemp2_1_1
elseiflngTemp2_1_2>0then
lngTemp2_1=lngTemp2_1_2
else
lngTemp2_1=0
endif
lngTemp2_2_1=instr(BeginPoint,strContent,"
lngTemp2_2_2=instr(BeginPoint,strContent,"
iflngTemp2_2_1>0then
lngTemp2_2=lngTemp2_2_1
elseiflngTemp2_2_2>0then
lngTemp2_2=lngTemp2_2_2
else
lngTemp2_2=0
endif
iflngTemp2_1=0andlngTemp2_2=0then
lngTemp2=BeginPoint
else
iflngTemp2_1>lngTemp2_2then
lngtemp2=lngTemp2_2
else
lngTemp2=lngTemp2_1+4
endif
endif
lngTemp3_1_1=instr(BeginPoint,strContent,"",1)
lngTemp3_1_2=instr(BeginPoint,strContent,"",1)
iflngTemp3_1_1>0then
lngTemp3_1=lngTemp3_1_1
elseiflngTemp3_1_2>0then
lngTemp3_1=lngTemp3_1_2
else
lngTemp3_1=0
endif
lngTemp3_2_1=instr(BeginPoint,strContent,"lngTemp3_2_2=instr(BeginPoint,strContent,"iflngTemp3_2_1>0then
lngTemp3_2=lngTemp3_2_1
elseiflngTemp3_2_2>0then
lngTemp3_2=lngTemp3_2_2
else
lngTemp3_2=0
endif
iflngTemp3_1=0andlngTemp3_2=0then
lngTemp3=BeginPoint
else
iflngTemp3_1>lngTemp3_2then
lngtemp3=lngTemp3_2
else
lngTemp3=lngTemp3_1+5
endif
endif
iflngTemp1lngTemp=lngTemp2
else
lngTemp=lngTemp1
endif
iflngTemplngTemp=lngTemp3
endif
iflngTemp>BeginPointandlngTemp<=BeginPoint+lngBoundthen
BeginPoint=lngTemp
else
lngTemp4_1_1=instr(BeginPoint,strContent,"",1)
lngTemp4_1_2=instr(BeginPoint,strContent,"",1)
iflngTemp4_1_1>0then
lngTemp4_1=lngTemp4_1_1
elseiflngTemp4_1_2>0then
lngTemp4_1=lngTemp4_1_2
else
lngTemp4_1=0
endif
lngTemp4_2_1=instr(BeginPoint,strContent,"
lngTemp4_2_1=instr(BeginPoint,strContent,"
iflngTemp4_2_1>0then
lngTemp4_2=lngTemp4_2_1
elseiflngTemp4_2_2>0then
lngTemp4_2=lngTemp4_2_2
else
lngTemp4_2=0
endif
iflngTemp4_1=0andlngTemp4_2=0then
lngTemp4=BeginPoint
else
iflngTemp4_1>lngTemp4_2then
lngtemp4=lngTemp4_2
else
lngTemp4=lngTemp4_1+5
endif
endif
iflngTemp4>BeginPointandlngTemp4<=BeginPoint+lngBoundthen
BeginPoint=lngTemp4
else
lngTemp5_1=instr(BeginPoint,strContent,"
lngTemp5_2=instr(BeginPoint,strContent,"
iflngTemp5_1>0then
lngTemp5=lngTemp5_1
elseiflngTemp5_2>0then
lngTemp5=lngTemp5_2
else
lngTemp5=BeginPoint
endif
iflngTemp5>BeginPointandlngTemp5BeginPoint=lngTemp5
else
lngTemp6_1=instr(BeginPoint,strContent,"
",1)
lngTemp6_2=instr(BeginPoint,strContent,"
",1)
iflngTemp6_1>0then
lngTemp6=lngTemp6_1
elseiflngTemp6_2>0then
lngTemp6=lngTemp6_2
else
lngTemp6=0
endif
iflngTemp6>BeginPointandlngTemp6BeginPoint=lngTemp6+4
endif
endif
endif
endif
endif
ifCurrentPage=pagesthen
EndPoint=ContentLen
else
EndPoint=MaxPerPage_Content*CurrentPage
ifEndPoint>=ContentLenthen
EndPoint=ContentLen
else
lngTemp1_1_1=instr(EndPoint,strContent,"
",1)lngTemp1_1_2=instr(EndPoint,strContent,"
",1)lngTemp1_1_3=instr(EndPoint,strContent,"
",1)
iflngTemp1_1_1>0then
lngTemp1_1=lngTemp1_1_1
elseiflngTemp1_1_2>0then
lngTemp1_1=lngTemp1_1_2
elseiflngTemp1_1_3>0then
lngTemp1_1=lngTemp1_1_3
else
lngTemp1_1=0
endif
lngTemp1_2_1=instr(EndPoint,strContent,"
lngTemp1_2_2=instr(EndPoint,strContent,"
lngTemp1_2_3=instr(EndPoint,strContent,"
iflngTemp1_2_1>0then
lngTemp1_2=lngTemp1_2_1
elseiflngTemp1_2_2>0then
lngTemp1_2=lngTemp1_2_2
elseiflngTemp1_2_3>0then
lngTemp1_2=lngTemp1_2_3
else
lngTemp1_2=0
endif
iflngTemp1_1=0andlngTemp1_2=0then
lngTemp1=EndPoint
else
iflngTemp1_1>lngTemp1_2then
lngtemp1=lngTemp1_2-1
else
lngTemp1=lngTemp1_1+7
endif
endif
lngTemp2_1_1=instr(EndPoint,strContent,"
",1)lngTemp2_1_2=instr(EndPoint,strContent,"
",1)iflngTemp2_1_1>0then
lngTemp2_1=lngTemp2_1_1
elseiflngTemp2_1_2>0then
lngTemp2_1=lngTemp2_1_2
else
lngTemp2_1=0
endif
lngTemp2_2_1=instr(EndPoint,strContent,"
lngTemp2_2_2=instr(EndPoint,strContent,"
iflngTemp2_2_1>0then
lngTemp2_2=lngTemp2_2_1
elseiflngTemp2_2_2>0then
lngTemp2_2=lngTemp2_2_2
else
lngTemp2_2=0
endif
iflngTemp2_1=0andlngTemp2_2=0then
lngTemp2=EndPoint
else
iflngTemp2_1>lngTemp2_2then
lngTemp2=lngTemp2_2-1
else
lngTemp2=lngTemp2_1+3
endif
endif
lngTemp3_1_1=instr(EndPoint,strContent,"",1)
lngTemp3_1_2=instr(EndPoint,strContent,"",1)
iflngTemp3_1_1>0then
lngTemp3_1=lngTemp3_1_1
elseiflngTemp3_1_2>0then
lngTemp3_1=lngTemp3_1_2
else
lngTemp3_1=0
endif
lngTemp3_2_1=instr(EndPoint,strContent,"lngTemp3_2_2=instr(EndPoint,strContent,"iflngTemp3_2_1>0then
lngTemp3_2=lngTemp3_2_1
elseiflngTemp3_2_2>0then
lngTemp3_2=lngTemp3_2_2
else
lngTemp3_2=0
endif
iflngTemp3_1=0andlngTemp3_2=0then
lngTemp3=EndPoint
else
iflngTemp3_1>lngTemp3_2then
lngtemp3=lngTemp3_2-1
else
lngTemp3=lngTemp3_1+4
endif
endif
iflngTemp1lngTemp=lngTemp2
else
lngTemp=lngTemp1
endif
iflngTemplngTemp=lngTemp3
endif
iflngTemp>EndPointandlngTemp<=EndPoint+lngBoundthen
EndPoint=lngTemp
else
lngTemp4_1_1=instr(EndPoint,strContent,"",1)
lngTemp4_1_2=instr(EndPoint,strContent,"",1)
iflngTemp4_1_1>0then
lngTemp4_1=lngTemp4_1_1
elseiflngTemp4_1_2>0then
lngTemp4_1=lngTemp4_1_2
else
lngTemp4_1=0
endif
lngTemp4_2_1=instr(EndPoint,strContent,"
lngTemp4_2_1=instr(EndPoint,strContent,"
iflngTemp4_2_1>0then
lngTemp4_2=lngTemp4_2_1
elseiflngTemp4_2_2>0then
lngTemp4_2=lngTemp4_2_2
else
lngTemp4_2=0
endif
iflngTemp4_1=0andlngTemp4_2=0then
lngTemp4=EndPoint
else
iflngTemp4_1>lngTemp4_2then
lngtemp4=lngTemp4_2-1
else
lngTemp4=lngTemp4_1+4
endif
endif
iflngTemp4>EndPointandlngTemp4<=EndPoint+lngBoundthen
EndPoint=lngTemp4
else
lngTemp5_1=instr(EndPoint,strContent,"
lngTemp5_2=instr(EndPoint,strContent,"
iflngTemp5_1>0then
lngTemp5=lngTemp5_1-1
elseiflngTemp5_2>0then
lngTemp5=lngTemp5_2-1
else
lngTemp5=EndPoint
endif
iflngTemp5>EndPointandlngTemp5EndP
展开阅读全文
相关搜索