Jump to content
Macro Express Forums

Function Call?


Carlos Garcia

Recommended Posts

If a Macro calls another macro, does control flow back to the original macro like a function terminating in a language like C++?

EG

Macro1

Text Type a

Text Type b

Text Type c

Text Type d

Macro Run: Macro2

Text Type e

Text Type f

Text Type g

 

Macro2

Text Type A

Text Type B

Text Type C

Text Type D

 

Would this output the following:

a b c d A B C D e f g

 

OR

 

a b c d A B C D

Link to comment
Share on other sites

Hello Carlos!

 

Yes, when a called macro ends, control goes back to the calling macro even if you do not use the Macro Return command. So in your example, a b c d A B C D e f g would be the correct answer. Exceptions are if the called macro aborts for any reason, or it encounters a Macro Stop command.

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