G
Gary Bouchard
Hello all,
I have a group of object which have an element called ctlindex.
What I would like to do is randomly change the control index (ctlindex)
within a range of number to shuffle them....
I have 12 image controls in an array, and I may have anywhere from 1 to 12
images to populate those controls, but typically have maybe 6 or 12 images.
imagectl.index = 12 to 23
What I want to do is shuffle the images, but only the occupied image controls.
In other words; the first objects ctlindex = 12 and the last one is 23, but
there may not be one in each slot... I might have only 6 objects, and want
to keep them contiguous, but shuffle the images.
Can someone give me a direction to go with this?
I can get the images to shuffle, but I end up with an empty image control in
between occupied ones and I want to keep them all together.
Any assistance is appreciated.
I have a group of object which have an element called ctlindex.
What I would like to do is randomly change the control index (ctlindex)
within a range of number to shuffle them....
I have 12 image controls in an array, and I may have anywhere from 1 to 12
images to populate those controls, but typically have maybe 6 or 12 images.
imagectl.index = 12 to 23
What I want to do is shuffle the images, but only the occupied image controls.
In other words; the first objects ctlindex = 12 and the last one is 23, but
there may not be one in each slot... I might have only 6 objects, and want
to keep them contiguous, but shuffle the images.
Can someone give me a direction to go with this?
I can get the images to shuffle, but I end up with an empty image control in
between occupied ones and I want to keep them all together.
Any assistance is appreciated.