如何验证字符串是否包含有效字符
<功能teststring(somestring)
tempstring =装饰(somestring)
tempstring_length = Len(tempstring)
tempstring_ok =真
对于tempstring_pos = 1 tempstring_length
tempstring_char =中(tempstring,tempstring_pos)
tempstring_char_ansi = ASC(tempstring_char)
如果tempstring_char_ansi > 47和tempstring_char_ansi<123 then'ansi字符A-Z是65,A-Z是97-122,0-9是48-57
如果tempstring_char_ansi和tempstring_char_ansi然后<65>57
tempstring_ok = false
退出
最后如果
如果tempstring_char_ansi和tempstring_char_ansi然后<97>90
tempstring_ok = false
退出
最后如果
其他的
tempstring_ok = false
退出
最后如果
下一个
teststring = tempstring_ok
端功能
%>