作业帮 > 英语 > 作业

各位大侠帮忙看看这个vbs哪里错了,系统提示“调用过程(sub)时不能使用括号”!谢谢!

来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/05/10 10:20:11
各位大侠帮忙看看这个vbs哪里错了,系统提示“调用过程(sub)时不能使用括号”!谢谢!
a=msgbox("Are you a pig? plase answer[Yes]or[No]!",36,"Please be careful to answer it")
if a=6 then
msgbox("Yours answer is [Yes],are you sure?",36,"Please be careful to answer it")
elseif a=6 then
msgbox("Ok,byby!have a good dream!")
elseif a=7 then
do
msgbox("You are a pig!")
loop
系统不是说的很清楚吗?“调用过程(sub)时不能使用括号”那你就把括号删了呀!a=msgbox("Are you a pig? plase answer[Yes]or[No]!",36,"Please be careful to answer it")
if a=6 then
msgbox "Yours answer is [Yes],are you sure?",36,"Please be careful to answer it" '!
elseif a=6 then
msgbox "Ok,byby!have a good dream!" '!
elseif a=7 then
do
msgbox "You are a pig!" '!
loop以上脚本标有 '! 符号的就代表那行的内容改过的.

顺便提示一下,你的baby写错了.你写成byby了!have的H没有大写.please也是
再问: 谢谢,后面还少了个 end if,改过来啦!!
再答: 抱歉,我没亲自运行,没有发现到这一点!