• 企业400电话
  • 微网小程序
  • AI电话机器人
  • 电商代运营
  • 全 部 栏 目

    企业400电话 网络优化推广 AI电话机器人 呼叫中心 网站建设 商标✡知产 微网小程序 电商运营 彩铃•短信 增值拓展业务
    由给定的字符串生成关键字
    '函数名:CreateKeyWord
    '作  用:由给定的字符串生成关键字
    '参  数:Constr---要生成关键字的原字符串
    '返回值:生成的关键字
    '**************************************************
    Function CreateKeyWord(byval Constr,Num)
       If Constr="" or IsNull(Constr)=True or Constr="$False$" Then
          CreateKeyWord="$False$"
          Exit Function
       End If
       If Num="" or IsNumeric(Num)=False Then
          Num=2
       End If
       Constr=Replace(Constr,CHR(32),"")
       Constr=Replace(Constr,CHR(9),"")
       Constr=Replace(Constr,"nbsp;","")
       Constr=Replace(Constr," ","")
       Constr=Replace(Constr,"(","")
       Constr=Replace(Constr,")","")
       Constr=Replace(Constr,"","")
       Constr=Replace(Constr,">","")
       Constr=Replace(Constr,"""","")
       Constr=Replace(Constr,"?","")
       Constr=Replace(Constr,"*","")
       Constr=Replace(Constr,"|","")
       Constr=Replace(Constr,",","")
       Constr=Replace(Constr,".","")
       Constr=Replace(Constr,"/","")
       Constr=Replace(Constr,"\","")
       Constr=Replace(Constr,"-","")
       Constr=Replace(Constr,"@","")
       Constr=Replace(Constr,"#","")
       Constr=Replace(Constr,"$","")
       Constr=Replace(Constr,"%","")
       Constr=Replace(Constr,"","")
       Constr=Replace(Constr,"+","")
       Constr=Replace(Constr,":","")
       Constr=Replace(Constr,":","")   
       Constr=Replace(Constr,"‘","")
       Constr=Replace(Constr,"“","")
       Constr=Replace(Constr,"”","")         
       Dim i,ConstrTemp
       For i=1 To Len(Constr)
          ConstrTemp=ConstrTemp  "|"  Mid(Constr,i,Num)
       Next
       If Len(ConstrTemp)254 Then
          ConstrTemp=ConstrTemp  "|"
       Else
          ConstrTemp=Left(ConstrTemp,254)  "|"
       End If
       CreateKeyWord=ConstrTemp
    End Function
    上一篇:[ASP]精华代码
    下一篇:经验几则
  • 相关文章
  • 

    © 2016-2020 巨人网络通讯 版权所有

    《增值电信业务经营许可证》 苏ICP备15040257号-8

    由给定的字符串生成关键字 由,给,定的,字符串,生成,