Results 1 to 2 of 2

Thread: Populating Combo boxes using ini or txt files.

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    2

    Exclamation

    I need to find out how to populate a combo box using either an ini or a txt file. I know it is possible I have seeen it done but I have not seen the code. This is probably something really basic but my brain is not working today.
    cat

  2. #2
    Guest
    I know how to do it if the Textfile has quotes around
    each string and the strings are on seperate lines.

    All you have to do is open the file and do a loop of insterting strings into the combobox until the end of file.

    Code:
    Dim strVal as String
    
    Open "Myfile.txt" for input as #1
      Do While Not EOF(1)
        input #1, strVal
        combo1.additem(strVal)
      Loop
    Close #1
    [Edited by Megatron on 05-04-2000 at 05:18 PM]

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