Jump to content
Macro Express Forums

Variables not Clearing


Recommended Posts

I have a had issues  with not  being able to clear variables and the macro will repeat a process again because those variable are still somehow there,  even after  a restart of MEPro.  I do not have any Save Variables commands in the macro, but I have  several clear variables though out the macros.    This is several macros linked together as it's growing in to a large set of macros that will handle different requests received via email.  When the macro has finished and ends with a clear all variables I F5 to see the variable there is nothing.   I have a simple macro that is schedule to start after 3 mins of idle to check for new emails. Even if there is no new email it some how has the variables from he last time it ran and repeats the previous request again. 

Link to comment
Share on other sites

I'll bet you my bottom dollar that if MEP is terminated and restarted, there is no way a variable will persist unless it's saved and restored in some way. 

Please provide us with a sample macro that succinctly demonstrates the problem.

Be careful with the viewing variables via F5. There are times when it can be misleading. I recommend you ad some message dialog boxes or do some variable saves to files if you're having problems. 

How are you scoping your variables? I'm guessing this is your problem. Scope is often hard for people to understand. I wrote this web page to describe it. 

Link to comment
Share on other sites

So I have toggled the macros variable to local, tested and got the same results.    I will try a terminate macro express to see if that wipes it.     Thanks for the hint.  Since I am building macros that will be able to call upon other macros if something is needed and to allow my self a singular point of updating and trouble shooting the macros this way I have. 

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...
 Share

×
×
  • Create New...