hey 你msgbox写错了。
text()
function text
dim a
a=InputBox("Enter your name:")
if a="BABA" then
msgbox "Hello Son!",0,"Title"
else
msgbox "Please call me BABA!",0,"Title"
text()
end if
end function
msgbox "Hello Son!",0,"Title"
msgbox "Please call me BABA!",0,"Title"
逗号问题
圈出来的逗号是不是打成中文状态下的了?测试你的代码没问题
我将记事本文档改为vbs 我印象当中能弹出窗口的 但是这个电脑没有出效果