|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Copy listbox into a text file
Hay all
I need to copy the contents of a listbox into a text file like: open file for output as #1 print #1, (list1 items) close #1 lol im kinda stressed over this.. been trying for AGES!!!!!!! |
|
#2
|
|||
|
|||
|
Give this a try:
Private Sub Command1_Click() Dim i As Integer Open "<FULL&NBSP;FILE&NBSP;Name and path here>" For Output As #1 For i = 0 To List1.ListCount - 1 Print #1, List1.List(i) Next i Close #1 End Sub |
|
#3
|
|||
|
|||
|
Thanks, it worked out!!
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Copy listbox into a text file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|