比如:我们要判断upschool包含在(www.upschool.com.cn)里面
我们就可以用以下这条函数.
Instr(str1,str2):从字符串str1,寻找另一个字符串str2第一个出现的位置
应用实例:
s=Instr("www.upschool.com.cn","upschool")
if s>0 then
包含
else
不包含
end if
来源:upschool.com.cn作者:吴龙杰关键字:ASP,字符串,数组,发表日期:2007-1-16 10:36:44
上一篇:ASP 编程中20个非常有用的例子 下一篇:用ASP批量更新SQL SERVER数据.