stevecasper Posted February 2, 2009 Report Share Posted February 2, 2009 Hey all, Maybe this has been discussed (I know versions of problems related to Variable Save/Restore have been), but I think I need a very specific clarification. I have a variable that I originally thought could be established without an array (honestly, I wasn't sure what an array was when I built the macro), and now I have that variable established in about a dozen macros but I want to modify it so that it has an array of  (more than I actually need, but now I'm starting to think in the long-run). Do I have to manually go through each of my established macros and modify the properites of that variable in each macro individually, or is there a way to change the variable from the ME Explorer window and have it add/modify the properties of this variable in each macro? Additionally, I'm annoyed by the fact that if Macro A sets variable %AccountNumber% to 1234567890 and then Macro A runs Macro B (which has no use for %AccountNumber% so that variable isn't added to Macro B's "variables list"), and then, after finishing Macro B, Macro A runs Macro C, which does need %AccountNumber, the variable is now empty. It was set in A and C, but since B didn't need it, it wasn't established within B's list, so when Macros A and C come back into play, the variable is now useless. What's the point of having the macro available to be called by other macros called by the macro wherein the variable is established, if it's just going to be nulled out during the play of that particular macro? Ok, so it's annoying, but can be worked around by making sure all the variables set in Macro A before Macro B runs are also added to Macro B's variables list. Kind of a lot of work. Is there any way to copy entire variables lists from one macro to another? I guess what I am really looking for is a way to make it so that when I create a variable in one macro, that variable is automatically added to a list of variables automatically accessible to all other macros (like the default Text/Decimal/Interger variables). Even if "Global" is checked, it still only appears within the macro I created it in. And back to the Save/Restore issue... I'm still unclear how/if this is working correctly. If I set %AccountNumber% in Macro A and save variables after it is set, then use Restore Variables in Macro C before that variable is needed, will it work for me? I know I could test it, but I'm so frustrated with ME Pro right this minute that I've suspended it and don't plan on touching it again for a few hours (I'm sulking) Thanks for any help! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.