Need help on ListBox (VB 50) 
Author Message
 Need help on ListBox (VB 50)

hello everyone.

Could someone help me to write an output from a ListBox into a text file

For example. I have 5 items in my ListBox and I'd like export them into a text
file.  How would I go about doing that. ?

===================
|   English       |
|   Math          |
|   Visual Basic  |
|   Chem          |
|   Cal           |
===================  

Thanks Million.



Fri, 11 Aug 2000 03:00:00 GMT  
 Need help on ListBox (VB 50)

Dim i As Integer, fh As Integer
fh = FreeFile
Open "myfile.txt" for Output As #fh
For i = 0 To List1.ListCount -1
        Print #fh, List1.List(i)
Next i
Close #fh

Lee Weiner
weiner AT fuse DOT net



Quote:
>hello everyone.

>Could someone help me to write an output from a ListBox into a text file

>For example. I have 5 items in my ListBox and I'd like export them into a text
>file.  How would I go about doing that. ?

>===================
>|   English       |
>|   Math          |
>|   Visual Basic  |
>|   Chem          |
>|   Cal           |
>===================  

>Thanks Million.



Fri, 11 Aug 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. 50 cent bring em in | 50 cent brings out jim jones | 50 cent broke

2. Need Example of GetCursorPos for VB 50

3. HELP - VB and Z39.50 protocol

4. Need to Display 50 records from a data-recordset

5. VB Doesn't compile 50% of the time

6. VB 50 Enterprise and Select Case

7. VB 50 Enterprise and Select Case

8. vb 50 / network

9. Drop and Drag Problem and Deployment Problem in VB 50 Enterprise

10. Unable to update DB/2 on AS/400 via VB.50 using RDO

11. VB 50 Enterprise and Select Case

12. problems wirh Pictures in vb. 50

 

 
Powered by phpBB® Forum Software