ASP中怎样忽略大小写?

来源:百度知道 编辑:UC知道 时间:2024/05/24 09:24:31
ASP中怎样忽略大小写?
如:
a="a"
b="A"
怎么让a=b?
谢谢三楼的.

a="a"
b="A"
'对比的时候转换成大写
if ucase(a)=ucase(b) then
response.write "ab一样"
end if

asp中使用的关键字或变量是不分大小写的.
但是作为字符串的内容,是分的.
要想不分,建议使用ASCII码.使大小写对应.

不要用C系统的语言,用VB