Results 1 to 9 of 9

Thread: Writing Listbox Contents To A File

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    56

    Writing Listbox Contents To A File

    Hey,

    I have a listbox on a form, and want to print the entire contents, row by row, out to a file.

    So for instance, a listbox could have the following values:

    Apple
    Banana
    Pear
    Plum
    Orange

    I want to write each line out to the file such as the following:

    Write #1, Line1, Line2, Line3, Line4, Line5 (For the entire contents of the listbox).

    I understand I would probably use a For Loop, For a = 1 to List1.Listcount or whatever, or could use an alternative loop.

    PS... Sorry about the overt simplification of this post, I thought it would be better to paraphrase it for clarification.

    Thanks,

    Snowblind.
    Last edited by Snowblind; Jul 18th, 2005 at 07:07 AM.

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