留言与评论(共有 0 条评论) |
发布时间:2020-04-12 09:14:40
这个代码中Private Sub Command1_Click()Dim n1, n2 As Integern1 = Val(Text1.Text)n1 = Val(Text2.Text)Label4.Caption = n1 + n2End Sub第4行的n1显然应该是n2要知道一个VB与众不同规定Dim n1,n2 as integer要改成 Dim n1 as integer ,n2 as integer或者Dim n1 as integer Dim n2 as integer
留言与评论(共有 0 条评论) |
全站搜索