Need snippit for Random Order
Okay this should be a simple one but all I can come with is a complecated solution.
This is whay I've got
Code:
Dim Question as string
Dim Answer(4) as string
Text1.Text=Question
Text2.Text=Answer(0)
Text3.Text=Answer(1)
Text4.Text=Answer(2)
Text4.Text=Answer(3)
What I want to do is place the Answers in a random order. Any ideas?
Re: Need snippit for Random Order
Oh one other thing I have to be able to know which answer is in which text box for when the user answers the Quesion By pressing one of 4 command buttons.
Re: Need snippit for Random Order
Have a look at this
http://www.freevbcode.com/ShowCode.Asp?ID=4451
You could use the tag property of the text box (assuming it still exists in .net) to hold the number of the answer in the text box.
Re: Need snippit for Random Order
I like the Tag idea I for got all about that property. Couple that with the Rnd function and a nestled lop I think I'll be able to make this work.