手机
当前位置:查字典教程网 >编程开发 >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中通过getrows实现数据库记录分页的一段代码

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

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

ASP连接数据库的全能代码

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

ASP动态生成的javascript表单验证代码

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

本人常用的分页代码

常见的ASP获取时间操作的代码

精品推荐
分类导航