Jump to content
Macro Express Forums

String Variables - "global" Question


cuppanews

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...