中国开发网: 论坛: 程序员情感CBD: 贴子 87446
wander
給你個現成的函數
Function ChkInvaildWord(Words)
Const InvaildWords="select|update|delete|insert"
ChkInvaildWord=True
InvaildWord=Split(InvaildWords,"|")
inWords=LCase(Trim(Words))

For i=LBound(InvaildWord) To UBound(InvaildWord)
If Instr(inWords,InvaildWord(i))>0 Then
ChkInvaildWord=True
Exit Function
End If
Next
ChkInvaildWord=False
End Function
Old soldiers never die, they just fade away .....

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录