Admac231,
I want to try and convert my program from using an Array to a List.
I'm a bit confused as to how best to do this.
Currently, I have defined a TYPE and then declared the Array:
Type typeQuestion( _
Question As String, correctAnswer As Int, _
Answer1 As String, Answer2 As String, Answer3 As String, Answer4 As String)
Dim Questions(50) As typeQuestion
Then I populate the elements with data:
Questions(2).Question = "Enrique plays tennis every Saturday. It takes him 30 minutes, each way from his house to the court and he plays for 1 hour. How much time does he spend between traveling and playing?"
Questions(2).Answer1 = "2.5 Hours?"
Questions(2).Answer2 = "2 Hours?"
Questions(2).Answer3 = "1.5 Hours?"
Questions(2).Answer4 = "3 hours?"
Questions(2).correctAnswer = 2
FYI, once I get things running properly, I will be populating the array/list with data from a mySQL server.
Later in the code, I modify my views with the data from the Questions Array.
I'm not sure how to add the Question TYPE to the list and still be able to access each element.
I hope this is making sense.
:sign0085: Sterling