Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望在有人输入错误值后出现一个消息框 例如:
Msgbox("The value ""txtID"" is wrong")
因此,如果我输入了错误的值,消息框应该显示“值 200(例如)是错误的”。我怎样才能做到这一点?
双引号内的任何内容都将被视为字符串。尝试这个。
Msgbox("The value " & txtID & " is wrong")