VB中的Caption如何引入多个变量

来源:百度知道 编辑:UC知道 时间:2024/06/28 07:37:04
Dim X,Y as string
X=Inputbox("Please enter your name")
Y=Inputbox("Please enter your friends name")
lblFriend.Caption = X,Y

在线等,半小时回复追加分,谢谢

dim x as string,y as string
X=Inputbox("Please enter your name")
Y=Inputbox("Please enter your friends name")
lblFriend.Caption=x & vbcrlf & y
lblFriend.autosize=true

Dim X,Y as string
X=Inputbox("Please enter your name")
Y=Inputbox("Please enter your friends name")
lblFriend.Caption = X & Y

这个怎么样?

Dim X,Y as string
X=Inputbox("Please enter your name")
Y=Inputbox("Please enter your friends name")
lblFriend.Caption = X & "love" & Y

我的电脑