我不知道为什么这段代码不起作用:
Dim a
a = InputBox("What time do you want?")
If InStr(a, "pm") Then
(Replace(a, "pm", ""))
a = a + 12
c = MsgBox(a, 0, Time)
WScript.Quit
Else
End If
b = MsgBox(a & form, 0, "L")
Run Code Online (Sandbox Code Playgroud)
每当我尝试启动它时,它会响应:
"错误:预期声明"
是因为Replace声明不正确还是因为脚本的其余部分出现了错误?