各位大侠帮忙看看这个vbs哪里错了,系统提示“调用过程(sub)时不能使用括号”!谢谢!!
a=msgbox("Areyouapig?plaseanswer[Yes]or[No]!",36,"Pleasebecarefultoanswerit")ifa=6the...
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 展开
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 展开
1个回答
展开全部
系统不是说的很清楚吗?
“调用过程(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,改过来啦!!
追答
抱歉,我没亲自运行,没有发现到这一点!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询