Click to See Complete Forum and Search --> : visual basic - arrays (AAARG!)


biscuitbandit
05-02-2003, 03:30 PM
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
05-03-2003, 03:21 PM
never mind. thought sod it and used database instead.