Visual Basic Matt
Apprentice
Im making a part in my program where is saves visited adresses the only part i need help with is saving them heres what i got.
How do i make this work? I took it from my note book in my program.
When you visit web pages it will keep track of them.
I know how to add the pages visited to the combo but how do i save each line of the combo box to the pages.dat document? And how do i get it to load it all. Please tell me how to code this.
Thank you.
How do i make this work? I took it from my note book in my program.
Code:
Private Sub Form_Load()
Open App.Path & "\pages.dat" For Input As #1
Do While Not EOF(1)
If Combo1.Text = "" Then
Line Input #1, inputline
Combo1.Text = inputline
Else
Line Input #1, inputline
Combo1.Text = Combo1.Text & vbCrLf & inputline
End If
Loop
Close #1
End Sub
Private Sub Form_Unload(Cancel As Integer)
Open App.Path & "\pages.dat" For Output As #1
Print #1, Combo1.Text
Close #1
End Sub
When you visit web pages it will keep track of them.
I know how to add the pages visited to the combo but how do i save each line of the combo box to the pages.dat document? And how do i get it to load it all. Please tell me how to code this.
Thank you.

