Machtyn
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Machtyn
-
-
Here's my situation: I have two macros. Macro "A" performs certain functions and can be run by itself, if necessary. Macro "B" will call Macro "A" at a certain point. I want Macro "A" to perform certain lines but ignore certain other lines if it was called by Macro "B". Is this possible with a simple command (similar to If Macro Enabled/Disabled).
I've thought to assign a variable in Macro "B" and have Macro "A" check it, but I'd prefer to keep away from using too many vars.
What follows is a pseudocode example of what I'm talking about.
Run Macro B Macro B: process stuff Macro B: call Macro A Macro A: process stuff Macro A: If not called by Macro B Macro A: do stuff Macro A: end if Macro A: do more stuff Macro A: if called by Macro B Macro A: return to Macro B Macro A: display dialogue showing end of macro Macro B: process stuff Macro B: display dialogue showing end of macro
Thanks,
Machtyn
Macro Needs To Recognize If It Was Called By Anoth
in Macro Express 3.x
Posted
Great! Thanks for the help. I did like I mentioned (set a var) and it works proper. I'm not using a whole lot of variables, so it's really only a concern of keeping variables straight in my head (that's what comments are for, though, right )