GetPaing 函数之asp采集函数中用到的获取分页的代码
GetPaing 函数之asp采集函数中用到的获取分页的代码
发布时间:2016-12-29 来源:查字典编辑
摘要:'=================================================='函数名: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

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新ASP教程学习
热门ASP教程学习
编程开发子分类