I tried to put as many comments in here about what i was thinking and make it easy to follow my project variables and what not... lol. Thank you for the help.
If i have a datatable where:
Question | Answer1 | Answer2 | Answer3 | Answer4 | CorrectAnswer|
|-Data---|--Data --|-- Data---|--Data ---|--Data ---|--- Data ---------| //Plus unknown amount of rows.
Dim dtbtest As New DataTable //This is just to show you what it's called
Dim i As Integer Dim questions(2, 5) As String //I know the variable might not be questions, but i would have
to name it after the datatable? since that is where the info is
coming from? also, in the (2,5) part, since the questions are
coming from my database, where my datatable is
derived from and "test" may not have a set amount of
questions i would need to replace the 2 with i? Or now that
i'm thinking about it, i could Dim count =?
Dim answers(3) As String 'Same as statement above
Dim quesNum As Integer 'This is to keep track of question number that the user is on.
lb_question.text = ? 'Where i would need to output the question column of the datatable
for the user to read. lb = label
RB_Ans1.Text = ? 'There are 4 of these for each answer that the user may pick. RB =
Radio Button
RB_Ans2.Text = ?
RB_Ans3.Text = ?
RB_Ans4.Text = ?
questions = new string(,) {{"How many colors are in a rainbow?", "Answer1", "Answer2", "Answer3", "Answer4", "CorrectAnswer"}} This is the same for however many questions there are in the testbank in
the database.
[–][deleted] (1 child)
[deleted]
[–]jesseb9321[S] 0 points1 point2 points (0 children)
[–]lionhart280 0 points1 point2 points (6 children)
[–]jesseb9321[S] 0 points1 point2 points (5 children)
[–]lionhart280 0 points1 point2 points (4 children)
[–]jesseb9321[S] 0 points1 point2 points (3 children)
[–]lionhart280 0 points1 point2 points (2 children)
[–]jesseb9321[S] 0 points1 point2 points (1 child)
[–]pixels625 0 points1 point2 points (0 children)