MsgBox语法(我不知道) [英] MsgBox syntax ( I have no clue )

查看:160
本文介绍了MsgBox语法(我不知道)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

还有什么其他东西可以用来表示数据,最后显示数据,如主题列表或学生名单列表....按钮点击后显示数据?

哪个一个是对的吗?

a)MsgBox(你的名字是,& txtyourname.Text)

b)MsgBox你的名字是,txtyourname.Text

c)否则......?

Is there anything else exept MsgBox, in the end to show the data, like a list of subject or a list of student names....to display data after button click?
and which one is right?
a) MsgBox("Your name is" ,&txtyourname.Text)
b) MsgBox "Your name is, txtyourname.Text"
c) Else...?

推荐答案

删除逗号,它应该可以正常工作。您需要将两个字符串连接在一起。您可以使用+和&来实现,其中&最有效。



MsgBox(你的名字是& txtyourname.Text)



祝你好运!
Remove the comma and it should work fine. You need to concatenate the two strings together. You can do that with either + and &, where & is most efficient.

MsgBox("Your name is" & txtyourname.Text)

Good luck!


其他:

Else:
MsgBox("Your name is " & txtyourname.Text)



不要使用,& 但是&



希望这有帮助。


Don''t use ,& but &

Hope this helps.


这篇关于MsgBox语法(我不知道)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆