03-17-2010, 12:42 PM
Hi Charls,
Use a counter variable and while going through your collection of objects increment it with 1 for every object till you reach your desired object. Now use the value stored in the counter variable as the index of the button.
Hope this helps.
Use a counter variable and while going through your collection of objects increment it with 1 for every object till you reach your desired object. Now use the value stored in the counter variable as the index of the button.
Hope this helps.