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

各位大侠帮忙看看这个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
zzh172 1年前 已收到1个回答 举报

海的那na边 幼苗

共回答了11个问题采纳率:100% 举报

系统不是说的很清楚吗?“调用过程(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也是

1年前 追问

6

zzh172 举报

谢谢,后面还少了个 end if,改过来啦!!

举报 海的那na边

抱歉,我没亲自运行,没有发现到这一点!
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 18 q. 0.029 s. - webmaster@yulucn.com