- 分享
- 0
- 人气
- 0
- 主题
- 55
- 帖子
- 345
- UID
- 295657
- 积分
- 3460
- 阅读权限
- 21
- 注册时间
- 2010-1-24
- 最后登录
- 2016-11-17
- 在线时间
- 386 小时
|
本帖最后由 oreeee 于 2011-11-15 06:55 PM 编辑
本人刚自学visual basic 2010 ,现在终于碰到墙壁了!=.=
先看以下二组资料:
1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim FirstName As String
Dim LastName As String
Dim FullName As String
FirstName = txtFirstName.Text
LastName = txtLastName.Text
FullName = FirstName & " " & LastName
FullName = txtFullName.Text
End Sub
End Class
2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim FirstName As String
Dim LastName As String
FirstName = txtFirstName.Text
LastName = txtLastName.Text
txtFullName.Text = FirstName & " " & LastName
End Sub
End Class
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
我想问为什么1的指令在visual basic 2010 内不可行能?
而2是可行的指令。
这是因为visual basic不支持“多分式变数”编写的原因吗?
希望能获得大大帮助!(问题所在已换上红色字体) |
|