[Not sure how else I would describe the subject, that pretty well sums it up]
Here's the set-up:
I have a C# project that references variables in another application:
TextFrame BodyCopyBox = (TextFrame)doc.FindElement("BodyCopyBox");
But what can happen is that I can have many of those like:
TextFrame BodyCopyBox1 = (TextFrame)doc.FindElement("BodyCopyBox1");
TextFrame BodyCopyBox2 = (TextFrame)doc.FindElement("BodyCopyBox2");
TextFrame BodyCopyBox3 = (TextFrame)doc.FindElement("BodyCopyBox3");
TextFrame BodyCopyBox4 = (TextFrame)doc.FindElement("BodyCopyBox4");
Once I have each element, I can do things like (and this is a small example of features):
BodyCopyBox1.Height = dHeightToDraw.ToString() + "in";
BodyCopyBox1.Width = dWidthToDraw.ToString() + "in";
So... here's the question. Is there a way that I can set up the variable names to include a variable? Something like:
for (int i=0; i<100; i++)
{
BodyCopyBox[i].Height = "8in";
}