I have 160 images. They are all named Box1 to Box160 (each has a different number). I was wondering if you could change the properties of each box without doing 160 lines of code. Heres what I had in mind but it obviously doesn't work.
-Index is a interger
-boxviz is my array
-Box is the image and index is the number that follows it
For Index = 1 To 160
If boxviz(Index) = 1 Then
Box(Index).Visible = False
End If
Index = Index + 1
Next Index
Help Please!
Comments
For Index = 1 To 160
Box(Index).Visible = False
Index = Index + 1
Next Index
Ofcourse, don't forget to set the image propery Index for the 160 images you use.
: Try this modified lines of your code:
:
:
:
: For Index = 1 To 160
: Box(Index).Visible = False
: Index = Index + 1
: Next Index
:
[HR]
[GREEN]
roodgebefteblauwebreedbeeldbekbaviaan
especially for in your kitchen.
[/GREEN]
[HR]
[PURPLE]
http://www.programmersheaven.com/c/MsgBoard/boardinfo.asp?BoardID=455
[/PURPLE]
[HR]