Jump to content
Macro Express Forums

Create 'subroutines' for modular, top-down macro design?


Wulfgar

Recommended Posts

:ph34r: Hey folks,

 

I've looked through the archives, and I can't seem to find something similiar to my question, so here goes.

 

I'm wondering if it's possible to assign macro script commands to variables? I'm pursuing top-down programming, similar to what's found here.

 

Yes, I know it's PHP and HTML. I'm trying to work the idea, not the specific code found on that page.

 

Can we assign several lines of script to a variable, and then create a 'backbone' macro that calls those variables?

 

I'm currently experimenting with the method that ejs proposed here.

 

Has anyone tried this?

Link to comment
Share on other sites

IMHO the best way to do this is the way I do it. :unsure:

 

What I do is create small reusable macros to use as subroutines. In the parent macro I use the Macro Run command and if I need to pass data between I do it with the registry. Works slick. I have some examples here.

 

 

I don't know if that's what you're looking for but..

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