Hi
Iam using Borland Builder 5, and Ive got 10 TImages called Image1, Image2....Image10. I want to add these images to an array of type TImage can I do that in a for loop or do i have to add each Image by itself.

//this is the method Iam using
TImage ImageArray[10];
ImageArray[0] = Image1;
ImageArray[1] = Image2;
ImageArray[9] = Image10;

//this is the method I want to use
for( int i = 0; i <10; i++)
{
ImageArray = XXX //what should replace the XXX if this is possible
}

You'll have to use the former method -- C++ programs don't know anything about their variable's names at run time.