I hope I can explain this clearly enough... I think what I want to do is possible but I am finding it confusing and not making much progress.
I have one Macro that stores data to a lot of Variables.
As an example those Variables might be:
VAR__Size
VAR__Position
VAR__Area
VAR__Weight
I have a second Macro that makes use of the data in these Variables.
I would like to be able to create separate Sets of these Variables so that the same two Macros can use different Variables on different Runs.
Ideally, at the start of the first Macro (the one that saves data to the Variables) I would have an Action that in effect gives me the choice to "Use Set1 of Variables for Saving Data"
And I would end up with Data saved to the Set:
VAR__Size Set1
VAR__Position Set1
VAR__Area Set1
VAR__Weight Set1
And when the second Macro runs I would like the a similar command at the start that gives me the choice to "Use Set1 for of Variables"
But on a different run the two Macros could be told to use Data from Set2:
VAR__Size Set2
VAR__Position Set2
VAR__Area Set2
VAR__Weight Set2
I know I can can make duplicates of the Macros and simply rename all the Variables (which is what I have been doing) but I would rather not have to do that as that gives me multiple long Macros that I have to maintain/debug etc separately.
So my question is, is there a way to put an Action at the start on a Macro that allows me to choose whether to use Set1 or Set2 or Set3 etc of the Variables for the rest of the Actions in that Macro?
In effect a Dynamically named set of Variables something like:
%Variable%%VAR__Size%%Set%%%
(Where %Set% stores 1, 2, 3 etc)
I have read various Threads which seem to point in this direction. The closest is this one:
But I have been unable to get anything that works (due to confusion on my part with how Indexes/Libraries/Dynamic Variables can be used).
I have also looked at the Wiki page on Libraries and Indexes and equally it confuses me (possibly I am thinking it all works differently to how it actually works and is for a different purpose to mine).