getpaing function of the ASP acquisition function used to get pagination code _ Application techniques
Source: Internet
Author: User
'==================================================
' Function name: getpaing
' Function: Get pagination
'==================================================
Function getpaing (Byval constr,startstr,overstr,inclul,inclur)
If constr= "$False $" or constr= "" or startstr= "" or overstr= "" or IsNull (constr) =true or IsNull (startstr) =true or IsNull (Ov ERSTR) =true Then
Getpaing= "$False $"
Exit Function
End If
Dim Start,over,contemp,tempstr
Tempstr=lcase (CONSTR)
Startstr=lcase (STARTSTR)
Overstr=lcase (OVERSTR)
Over=instr (1,TEMPSTR,OVERSTR)
If over<=0 Then
Getpaing= "$False $"
Exit Function
Else
If inclur=true Then
Over=over+len (OVERSTR)
End If
End If
Tempstr=mid (Tempstr,1,over)
Start=instrrev (TEMPSTR,STARTSTR)
If Inclul=false Then
Start=start+len (STARTSTR)
End If
If start<=0 Or start>=over Then
Getpaing= "$False $"
Exit Function
End If
Contemp=mid (Constr,start,over-start)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service