Is it possible to set an indirect tag's reference "indirectly"?
For example, I have a number of indirect tags TAG_INDIRECT_1, TAG_INDIRECT_2, ... TAG_INDIRECT_n, and a function GetTagname(i) that returns the i'th tagname from some list (a config file, for instance).
I could explicitly set the references like so:
TAG_INDIRECT_1.Name = CALL GetTagname(1);
TAG_INDIRECT_2.Name = CALL GetTagname(2);
etc.
What I would like to do is something like this:
FOR i=1 TO n
SetTagname("TAG_INDIRECT_" + i, CALL GetTagname(i));
NEXT i
I'd prefer a WW Script solution, but would be willing to write a custom DLL if necessary.
Any ideas?
Thanks,
Steve
For example, I have a number of indirect tags TAG_INDIRECT_1, TAG_INDIRECT_2, ... TAG_INDIRECT_n, and a function GetTagname(i) that returns the i'th tagname from some list (a config file, for instance).
I could explicitly set the references like so:
TAG_INDIRECT_1.Name = CALL GetTagname(1);
TAG_INDIRECT_2.Name = CALL GetTagname(2);
etc.
What I would like to do is something like this:
FOR i=1 TO n
SetTagname("TAG_INDIRECT_" + i, CALL GetTagname(i));
NEXT i
I'd prefer a WW Script solution, but would be willing to write a custom DLL if necessary.
Any ideas?
Thanks,
Steve