Hi all,
Im trying to export a list to a notepad file but am not sure where to start.
Any help is appreciated.
edit- The list i am trying to export is created via a search using vb6
Thanks in advance,
Atribune/Dave
Printable View
Hi all,
Im trying to export a list to a notepad file but am not sure where to start.
Any help is appreciated.
edit- The list i am trying to export is created via a search using vb6
Thanks in advance,
Atribune/Dave
I presumed you meant a listbox??
VB Code:
Private Sub Command1_Click() Dim i As Integer Open "C:\Export.txt" For Output As #1 For i = 0 To List1.ListCount - 1 Print #1, List1.List(i) Next Close #1 End Sub Private Sub Form_Load() List1.AddItem "This" List1.AddItem "is" List1.AddItem "a" List1.AddItem "test" End Sub
I take it that you are getting your search data in strings?
if so, then Open an output file, and print the strings...
VB Code:
Open "\output.txt" for Output as #1 Print #1, searchstring Close #1
Worked perfect thank you vey much Lintz