Hi,
I have created multiple bitmaps and assigned them to Image1 to Image100. Lets say I want to move Image2 to an X,Y position I am doing this.
this.Image1.Opacity = 20;
this.Image1.Bounds.x1 = this.Arraybjects[1,10];
this.Image1.Bounds.x2 = this.Arraybjects[1,10]+50.0;
this.Image1.Bounds.y1 = this.Arraybjects[1,11];
this.Image1.Bounds.y2 = this.Arraybjects[1,11]+50.0;
But I want to use a string variable for Image1 or Imagex. Try something like this, but I am getting an error.
var int32 newImageNumber = 1;
var string img = "Image" + string( newImageNumber, 2 );
this.img.Opacity = 200;
this.img.Bounds.x1 = this.Arraybjects[1,10];
this.img.Bounds.x2 = this.Arraybjects[1,10]+50.0;
this.img.Bounds.y1 = this.Arraybjects[1,11];
this.img.Bounds.y2 = this.Arraybjects[1,11]+50.0;
Basically I want to insert the string "img" in the middle of the expression above.
What is the best way to do this so that I don't have to type 100 times for each expression?
Thx