Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'文字
'Dim str1 = "王先生"
'str1 = str1 & vbNewLine
'str1 = str1 & "您好"
'MsgBox(str1)
'數字
'Dim n1 = 100
'Dim n2 = 200
'MsgBox(n1 & "+" & n2 & "=" & n1 + n2)
'文字 + 數字
Dim str1 = "王小美"
Dim str2 = "上課睡覺"
Dim n1 = 3
MsgBox(str1 & n1 + 2 & "次" & str2)
End Sub
End Class
沒有留言:
張貼留言