的确是用不起,所以问下三
你的combo1是控件数组……
把index的0去掉……
Private Sub Form_Load()
Open App.Path & "\url.dat" For Random As #1
Dim no As Integer, address As String
no = 1
Do While Not EOF(1)
Get #1, no, address
Combo1.AddItem = address
no = no + 1
Loop
Close #1
Open App.Path & "\url.dat" For Random As #1
Dim url As String
Get #1, 1, url
reclen = Len(url)
If reclen = 0 Then
reclen = 1
Else
reclen = reclen
End If
Close #1
End Sub
中的
Combo1.AddItem = address
改成
Combo1.AddItem (address)