How do I setup a for loop so I can substitute the integer value in the object name or variable name?
Something like this:
var i: integer; str3, str4, str5: String
begin
for i := 3 to 5 do begin
PictureXXX.Picture.LoadFromFile('foo.bmp');
strXXX := 'foo';
end;
I have 3 images on the form, named Picture3, Picture4, and Picture5 and I want to substitute the value of i for XXX in the indentifier. (It's actually a boat load more than 3, but you get the idea).