|
-
Oct 21st, 2007, 06:57 PM
#1
Thread Starter
New Member
How to have an array of labels randomly appear
I have 20 labels that belong to an array. Then i have another Label that i want them to copy to in a random order. I'm doing a test for children and they have 10 questions that they have to answer, but i want these questions to be randomly selected out of the 20 labels. At the moment my code is:
Private Sub cmdcontinue_Click()
Dim quest As String, poss As String, Index(1 To 20) As Integer
Randomize
poss = (RndIndex * 10) + 1
quest = lblquestion.Caption
poss = lblrand.count
quest = poss
End Sub
At the moment it isn't doing anything, and before it was only showing the number 20????
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|