|
-
Jun 26th, 2000, 12:13 AM
#1
Thread Starter
Addicted Member
how would i go about making a random image (out of 51) visible? Heres my code.........
Private Sub Form_Load()
RndW = Int(Rnd * 51)
RImage(RndW).Visible = True
i know this is not right, could someone please key me in....thanks!
-
Jun 26th, 2000, 12:15 AM
#2
Fanatic Member
I can't really see anything wring with that. as long as RImage is a control array.
Iain, thats with an i by the way!
-
Jun 26th, 2000, 12:17 AM
#3
Thread Starter
Addicted Member
no, its not a control array, that may have been my problem though, they are all named, RImage## (where ## is 1-50)
-
Jun 26th, 2000, 12:17 AM
#4
That code should work fine. but make sure that RImage is part of a Control Array.
-
Jun 26th, 2000, 12:19 AM
#5
To fix it. Make all the image's Name RImage and set the Index from 0 to 51.
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
|