最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

GetBody asp實現(xiàn)截取字符串的代碼

 更新時間:2007年09月01日 22:05:41   作者:  
'==================================================
'函數(shù)名:GetBody
'作  用:截取字符串
'參  數(shù):ConStr ------將要截取的字符串
'參  數(shù):StartStr ------開始字符串
'參  數(shù):OverStr ------結(jié)束字符串
'參  數(shù):IncluL ------是否包含StartStr
'參  數(shù):IncluR ------是否包含OverStr
'==================================================
Function GetBody(ConStr,StartStr,OverStr,IncluL,IncluR)
   If ConStr="$False$" or ConStr="" or IsNull(ConStr)=True Or StartStr="" or IsNull(StartStr)=True Or OverStr="" or IsNull(OverStr)=True Then
      GetBody="$False$"
      Exit Function
   End If
   Dim ConStrTemp
   Dim Start,Over
   ConStrTemp=Lcase(ConStr)
   StartStr=Lcase(StartStr)
   OverStr=Lcase(OverStr)
   Start = InStrB(1, ConStrTemp, StartStr, vbBinaryCompare)
   If Start<=0 then
      GetBody="$False$"
      Exit Function
   Else
      If IncluL=False Then
         Start=Start+LenB(StartStr)
      End If
   End If
   Over=InStrB(Start,ConStrTemp,OverStr,vbBinaryCompare)
   If Over<=0 Or Over<=Start then
      GetBody="$False$"
      Exit Function
   Else
      If IncluR=True Then
         Over=Over+LenB(OverStr)
      End If
   End If
   GetBody=MidB(ConStr,Start,Over-Start)
End Function

相關(guān)文章

最新評論

高密市| 白沙| 德江县| 永年县| 明光市| 精河县| 菏泽市| 金平| 巴马| 平安县| 读书| 乌苏市| 晴隆县| 军事| 西乌珠穆沁旗| 竹溪县| 余庆县| 遂川县| 进贤县| 申扎县| 漳浦县| 陇南市| 本溪| 祥云县| 定陶县| 石屏县| 丰顺县| 阿鲁科尔沁旗| 武川县| 盐源县| 石台县| 原平市| 当涂县| 贡觉县| 久治县| 西乌珠穆沁旗| 双流县| 科技| 固始县| 南部县| 阳原县|