is there a way to append a number to a variable name at runtime?
like this
i have 100 TImages
i want to make an array with 1 pointer to each image
i dont want to say:
ptrs[0] = timage1;
ptrs[1] = timage2;
ect.. to 100
(actually i found nearly 700 in my program so this would look quite untidy...)
what i would like to do is run a for loop
where the variable stored as a pointer is bgased on the number in the for loop
is there any way to do something like that??
thanks
ken
like this
i have 100 TImages
i want to make an array with 1 pointer to each image
i dont want to say:
ptrs[0] = timage1;
ptrs[1] = timage2;
ect.. to 100
(actually i found nearly 700 in my program so this would look quite untidy...)
what i would like to do is run a for loop
where the variable stored as a pointer is bgased on the number in the for loop
is there any way to do something like that??
thanks
ken
Comment