Results 1 to 2 of 2

Thread: Test Files and Combo Box

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Seattle
    Posts
    954
    How do you have a combo box read from a text file?

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    You don't, you read from the Text file and fill the Combobox, i.e.
    Code:
    Dim iFile As Integer
    Dim sLine As String
    
    iFile = FreeFile
    Open "C:\SomeFile.txt" For Input As iFile
    While Not EOF(iFile)
        Line Input #iFile, sLine
        Combo1.AddItem sLine
    Wend
    Close iFile

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