-
A Senior Newbie - How Odd
Dynamically Addressing Elements
Hi Forum,
Is it possible to do something like the following:
Instead of:
element("Terry").x=0;
element("June").x=0;
Is there a way I can do something like:
variableelementname="Terry";
element(variableelementname).x=0;
variableelementname="June";
element(variableelementname).x=0;
This is so that I can avoid having to address lots of elements individually. I tried it, but it says I need to have the " in the brackets of the element name. Is there a trick to doing this, or is it just not possible?
Thanks in advance,
Morgan.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|