Results 1 to 3 of 3

Thread: [RESOLVED] Saving FileListBox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    103

    Resolved [RESOLVED] Saving FileListBox

    Can anyone give me the code to save the contents of a FileListBox as a text file, thanx.

    Pretty sure there must be a loop somewhere, anyway, any help is appreciated.

  2. #2
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: Saving FileListBox

    VB Code:
    1. Dim FF As Integer
    2. Dim Itm As Integer
    3.  
    4. FF = FreeFile()
    5.  
    6. Open App.Path & "\My Text File.txt" For Output As #FF
    7.     For Itm = 0 To File1.ListCount - 1
    8.         Print #FF, File1.List(Itm)
    9.     Next
    10. Close #FF

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    103

    Re: Saving FileListBox

    ...i stand corrected, thanx mate!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width