
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.