用 VBS 判断"ASP"与"asP"这两个字符不相等

用 StrComp 函数可以很快地比较这些字符串
StrComp 返回
string1 小于 string2 -1
string1 等于 string2 0
string1 大于 string2 1
string1 或 string2 为 Null Null

eg:

1<script language="vbscript">   
2msgbox StrComp("ASP", "asP")   
3msgbox StrComp("ASP", "ASP")   
4</script>
Published At
Categories with Web编程
comments powered by Disqus