Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Adding to a combo box from a split array

$
0
0
I have split up text from a file and placed it into an array. I then want to put those values from the array into a combo box as different values. Each time I try I either get no error initially but it crashes or doesn't do what it should or nothing when the program is run. or I get an error about a one dimensional array cannot be converted to string.

For example:
This doesn't add anything to the combo box and also doesn't bring up an error beforehand or when the program is running
 Do While SeatReader.Peek() <> -1
                    SeatRead = SeatReader.ReadLine()
                    SeatNumber = SeatRead.Split(",")
                    For i = 0 To 19
                        If Mid(SeatNumber(i), 1, 1) = "A" Then
                            Cbo_SelectSeat.Items.Add(Mid(SeatNumber(i), 2, 2))


Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>