|
-
Jan 15th, 2007, 06:25 PM
#1
Thread Starter
Member
[RESOLVED] Newbie Question on Controls and variables
Hail to All,
Ok here is what I am doing. lets say I have 10 picture controls on my form. I know I can create an array of the control but I was just wondering if this is possible.
I have 10 picture boxes. Picture1-Picture10. Could I put them in a loop somehow such as.
For I = 1 to 10
Picture(i).backcolor = X
Next I
Or
for I = 1 to 10
PicControl = "Picture"
PicControl = PicControl + I
PicControl.backcolor = X
Next I
Is there some way to do it this way? without having to create the array that it would but the value of the variable
Thanks for all your help.
Mythos44
Last edited by Hack; Jan 16th, 2007 at 09:22 AM.
Reason: Added [RESOLVED] to thread title and green "resolved" checkmark
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
|