手机
当前位置:查字典教程网 >编程开发 >ASP教程 >GetPaing 函数之asp采集函数中用到的获取分页的代码
GetPaing 函数之asp采集函数中用到的获取分页的代码
摘要:'=================================================='函数名:GetPaing'作用:获取...

'==================================================

'函数名:GetPaing

'作用:获取分页

'==================================================

FunctionGetPaing(ByvalConStr,StartStr,OverStr,IncluL,IncluR)

IfConStr="$False$"orConStr=""OrStartStr=""OrOverStr=""orIsNull(ConStr)=TrueorIsNull(StartStr)=TrueOrIsNull(OverStr)=TrueThen

GetPaing="$False$"

ExitFunction

EndIf

DimStart,Over,ConTemp,TempStr

TempStr=LCase(ConStr)

StartStr=LCase(StartStr)

OverStr=LCase(OverStr)

Over=Instr(1,TempStr,OverStr)

IfOver<=0Then

GetPaing="$False$"

ExitFunction

Else

IfIncluR=TrueThen

Over=Over+Len(OverStr)

EndIf

EndIf

TempStr=Mid(TempStr,1,Over)

Start=InstrRev(TempStr,StartStr)

IfIncluL=FalseThen

Start=Start+Len(StartStr)

EndIf

IfStart<=0OrStart>=OverThen

GetPaing="$False$"

ExitFunction

EndIf

ConTemp=Mid(ConStr,Start,Over-Start)

ConTemp=Trim(ConTemp)

ConTemp=Replace(ConTemp,"","")

ConTemp=Replace(ConTemp,",","")

ConTemp=Replace(ConTemp,"'","")

ConTemp=Replace(ConTemp,"""","")

ConTemp=Replace(ConTemp,">","")

ConTemp=Replace(ConTemp,"<","")

ConTemp=Replace(ConTemp,"","")

GetPaing=ConTemp

EndFunction

【GetPaing 函数之asp采集函数中用到的获取分页的代码】相关文章:

写了段批量抓取某个列表页的东东

ASP.NET共享ASP用户Session的方法及代码

asp中FSO复制文件代码

asp中实现随机分组程序的代码

在asp中通过vbs类实现rsa加密与解密的代码

asp调用二级分类代码

实例分析之用ASP编程实现网络内容快速查找的代码

asp分页的一个类

asp 全面安全数据连接代码

记录集内随机取记录的代码

精品推荐
分类导航