主页 > 知识库 > CreateKeyWord asp实现的由给定的字符串生成关键字的代码

CreateKeyWord asp实现的由给定的字符串生成关键字的代码

热门标签:伊春外呼业务系统 调度系统外呼 宜宾语音外呼系统软件 电销机器人教育 福建外呼增值业务线路 电销机器人源码网盘下载 绵阳防封电销卡价格 河北智能外呼系统软件 中国办理电信400电话
'**************************************************
'函数名: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,"”","")
   Constr=Replace(Constr,"","")  
   Constr=Replace(Constr,"gt;","")      
   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
   ConstrTemp=left(ConstrTemp,len(ConstrTemp)-1)
   ConstrTemp= Right(ConstrTemp,len(ConstrTemp)-1)
   CreateKeyWord=ConstrTemp
End Function

标签:新乡 河池 苏州 电商邀评 延边 那曲 优质小号 铜川

巨人网络通讯声明:本文标题《CreateKeyWord asp实现的由给定的字符串生成关键字的代码》,本文关键词  CreateKeyWord,asp,实现,的,由,;如发现本文内容存在版权问题,烦请提供相关信息告之我们,我们将及时沟通与处理。本站内容系统采集于网络,涉及言论、版权与本站无关。
  • 相关文章
  • 下面列出与本文章《CreateKeyWord asp实现的由给定的字符串生成关键字的代码》相关的同类信息!
  • 本页收集关于CreateKeyWord asp实现的由给定的字符串生成关键字的代码的相关信息资讯供网民参考!
  • 推荐文章