检查非法字符
来源:互联网 发布:陕西信合网络 编辑:程序博客网 时间:2024/05/01 15:12
'******************************
'名称: ChkInvStr
'参数:Str
'返回值:True/False
'创建时间:2005年5月2日
'作用:检查参数是否有非法字符
'******************************
Public Function ChkInvStr(Str)
Rem 定义需要过滤得非法字符
Dim InvaildWord,inWords,i
Str=CStr(Str)
ChkInvStr=False
If Len(Replace(p_InvaildWords,Chr(0),""))<1 Then
AddErrorCode(103) 'invaildwords is null
Exit Function
Else
If Instr(1,p_Invaildwords,"|")>0 Then
InvaildWord=Split(p_InvaildWords,"|")
inWords=LCase(Trim(Str))
For i=LBound(InvaildWord) To UBound(InvaildWord)
If Instr(inWords,InvaildWord(i))>0 Then
p_Error=1982
AddErrorCode(105)
ChkInvStr=True
Exit Function
End If
Next
Else
AddErrorCode(104) '"|" is requried.
Exit Function
End If
End If
End Function
'名称: ChkInvStr
'参数:Str
'返回值:True/False
'创建时间:2005年5月2日
'作用:检查参数是否有非法字符
'******************************
Public Function ChkInvStr(Str)
Rem 定义需要过滤得非法字符
Dim InvaildWord,inWords,i
Str=CStr(Str)
ChkInvStr=False
If Len(Replace(p_InvaildWords,Chr(0),""))<1 Then
AddErrorCode(103) 'invaildwords is null
Exit Function
Else
If Instr(1,p_Invaildwords,"|")>0 Then
InvaildWord=Split(p_InvaildWords,"|")
inWords=LCase(Trim(Str))
For i=LBound(InvaildWord) To UBound(InvaildWord)
If Instr(inWords,InvaildWord(i))>0 Then
p_Error=1982
AddErrorCode(105)
ChkInvStr=True
Exit Function
End If
Next
Else
AddErrorCode(104) '"|" is requried.
Exit Function
End If
End If
End Function
- 检查非法字符
- 检查是否含有非法字符
- js检查不能有非法字符
- 利用数组,过滤非法字符,在foreach循环检查输入
- 关于scanf对输入非法字符的检查和处理
- 内核非法MAC检查
- SQL SERVER 检查SQL条件参数中是否存在非法字符
- 过滤非法字符 一
- 过滤非法字符 二
- 过滤非法字符 三
- 非法字符替换函数
- asp过滤非法字符
- 检测非法字符
- Filter过滤非法字符
- Javascript验证非法字符
- 过滤非法字符
- 过滤非法字符
- 过滤非法字符问题
- MFC打印程序
- 网页自动刷新
- 用ASP将数据读数导出EXCEL文件的四种方法
- 强制刷新
- CEOWEN百度视频小偷 V1.0 beta
- 检查非法字符
- 得到用户的ip地址
- 检查被提交的数据来源
- 大唐集团获300亿贷款 TD资金困局缓解
- 汇编代码对应的高级语言分析
- 打印
- 用VB将ASP代码封装成DLL
- sql server 2000 导入 oracle9i 后表不能用select查询数据的解决办法
- C# 窗体间调用