vb中label如何既输出文字又输出变量

Private Sub Command1_Click()
Dim a As Integer
Dim b As Integer
Dim c As Integer
Dim s As Integer

a = Int(Val(Text1.Text))
b = Int(Val(Text2.Text))
c = Int(Val(Text3.Text))
s = a * b * c
Label4.Caption = ("面积为:") PS:就在这后面加上变量s的值,如何实现啊
End Sub

Label4.Caption = "面积为:" & s


Label4.Caption = "面积为:" + s
温馨提示:内容为网友见解,仅供参考
第1个回答  2015-04-14
Label4.Capiton = "面积为:" & S本回答被提问者采纳
相似回答