cuppanews Posted February 16, 2005 Report Share Posted February 16, 2005 Hi... I want to define some string variables in one macro, and then be able to access them with another macro. Is this possible in an efficient way (i.e., not having to write them to a file)? Thanks. Quote Link to comment Share on other sites More sharing options...
kevin Posted February 16, 2005 Report Share Posted February 16, 2005 Variables defined in one macro are automatically available to any macro called by a Macro Run command from within that macro. If that is not possible then you need to save and restore the variables some way. There are several techniques: // Save / restore all text variables (%Tx%) Variable Save Text Variables Variable Restore Text Variables // Save / restore all variables Variable Save All Variables Variable Restore All Variables // Save / restore a single variable using an .INI file Variable Modify String: Save %T1% to INI File Variable Set String %T1% from INI File // Save / restore a single variable using the environment variables Variable Modify String: Save %T1% to Environment Variable Variable Set String %T1% from Environment Variable // Save / restore a single variable using a text file Variable Modify String: Save %T1% to Text File Variable Set String %T1% from File: "T1" The 'Variable Save' command saves the variables in memory. Quote Link to comment Share on other sites More sharing options...
cuppanews Posted February 17, 2005 Author Report Share Posted February 17, 2005 Thank you, Kevin. That's exactly what I was trying to figure out, though I'm embarassed that I didn't see these commands. (As you may have guessed, I'm new to MacroExpress.) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.