visual basic - arrays (AAARG!)

Sharky Forums


Results 1 to 2 of 2

Thread: visual basic - arrays (AAARG!)

  1. #1
    Reef Shark
    Join Date
    Mar 2002
    Posts
    370

    Red face visual basic - arrays (AAARG!)

    Code:
    Private Sub Command1_Click()
    
        Dim title() As String
        Dim year() As String
        Dim cert() As String
        Dim genre() As String
        Dim tagline() As String
        Dim norated() As Integer
        Dim rating() As Integer
        
    Open "testfile.txt" For Input As #1
    
        Do While Not EOF(1)
    
            Input #1, title, year, cert, genre, tagline, norated, rating
            Combo1.AddItem title
            
        Loop
    
    Close #1
    
    End Sub
    ok i currently have that in my little program. how can i assign the data im pulling from the text file into an array?

    on the line combo1.additem title im getting a type mismatch, and if i remove that i get an overflow error on the input line

    im rather confusedered
    biscuitbandit - re-defining the word "stupid" since 1984.

  2. #2
    Reef Shark
    Join Date
    Mar 2002
    Posts
    370
    never mind. thought sod it and used database instead.
    biscuitbandit - re-defining the word "stupid" since 1984.

Posting Permissions

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