[求助]关于列表框的使用
源代码如下:
Dim t1(100) As Data, i As Integer
Private Sub Command1_Click()
List1.AddItem Text1.Text
t1(i) = Time ’此处有错“对象变量或with块变量未设置”
i = i + 1
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
Label3.Visible = False
End Sub
Private Sub List1_Click()
Label3.Visible = True
Label2.Visible = False
Text1.Text = t1(List1.ListIndex)
End Sub
Private Sub Text1_GotFocus()
Label2.Visible = True
Label3.Visible = False
Text1.Text = ""
End Sub
谁能告诉我怎么改