缺少 'Then'

来源:百度知道 编辑:UC知道 时间:2024/06/08 08:51:49
请问缺少then是怎么回事啊(asp问题),请大家帮忙? 错误类型:

Microsoft VBScript 编译器错误 (0x800A03F9)
缺少 'Then'
/reg.asp, line 809, column 75
if instr(lcase(request("myface")),"http://")>0 or instr(lcasuest("myface")),"www.")>0 then
源码是

if Cint(OpenFaces(0))=0 then
if instr(lcase(request("myface")),"http://")>0 or instr(lcasuest("myface")),"www.")>0 then
errmsg=errmsg+"<br>"+"<li>本交友设置了不允许连接外部网址做头像。"
founderr=true
end if
end if

if .... then ...

end if

如果 怎么样怎么样 那么怎么样怎么样

结束如果

你缺少了 then (那么),他就不会执行下面的语句了

你查找一下程序哪一句 if ....后面没带then 加上就好了

if instr(lcase(request("myface")),"http://")>0 or instr(lcasuest("myface"),"www.")>0 then

if instr(lcase(request("myface")),"http://")>0 or instr(lcase(request("myface")),"www.")>0 then

错误在这里lcasuest("myface")),和前面的不一样,写错了!一定要细心!
应该为lcase(request("myface"))

你的:
if instr(lcase(request("myface")),"http://")>0 or instr(lcasuest("myface")),"www.")>0 then
里少了一个“(”和几个字母,所以程序误认为语句没有THEN

修改后应该为:
if instr(lcase(request("myface")),"http://")>0 or instr(lcase(request("myface")),"www.")>0 then

or后面的语句不对,应该是:
if instr(lcase(request("myface")),"http://&qu