郁闷,先忘上传了....
[此贴子已经被作者于2007-8-24 16:02:09编辑过]
[此贴子已经被作者于2007-8-24 16:02:09编辑过]
.....没给么..... 算了,直接给代码了:
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
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
话说我手头没有VB 从WinRAR里看出来运行肯定出错