手机
当前位置:查字典教程网 >编程开发 >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中实现随机分组程序的代码

在ASP中用组件检测当前网卡地址的代码

Asp遍历服务器对象的代码

ASP与数据库,有用的代码(转贴,摘贴)

在asp中通过getrows实现数据库记录分页的一段代码

asp调用c#编制的com组件实例

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

简单过滤一下广告的代码

asp调用二级分类代码

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

精品推荐
分类导航