|
-
Jul 18th, 2005, 08:27 PM
#1
Thread Starter
Banned
Need help with exporting {RESOLVED}
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
Last edited by Hack; Jul 19th, 2005 at 11:42 AM.
-
Jul 18th, 2005, 08:38 PM
#2
Re: Need help with exporting
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
-
Jul 18th, 2005, 08:39 PM
#3
Hyperactive Member
Re: Need help with exporting
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
-
Jul 18th, 2005, 08:40 PM
#4
Thread Starter
Banned
Re: Need help with exporting
Worked perfect thank you vey much Lintz
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|