Hey all. Ill put this simply.
{assigning 52 jpeg's to 52 different TImages}
What i have:
for x:= 1 to 52 do
case x of
1: img1.picture.loadfromfile(1.jpg);
2: img2.picture.loadfromfile(2.jpg);
3: img3.picture.loadfromfile(3.jpg);
4: img4.picture.loadfromfile(4.jpg);
i think you get the picture.
What i want:
some way of programmatically selecting a certain image using a variable. This could mean filling a string variable with 'img1.picture.loadfromfile(1.jpg)' and then using code to run that, or it could mean something like this..
for x:= 1 to 52 do
img(x).picture.loadfromfile(IntToStr(x)+'.jpg');