Wulfgar Posted February 6, 2008 Report Share Posted February 6, 2008 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? Quote Link to comment Share on other sites More sharing options...
Cory Posted February 6, 2008 Report Share Posted February 6, 2008 IMHO the best way to do this is the way I do it. 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.. Quote Link to comment Share on other sites More sharing options...
stan Posted February 6, 2008 Report Share Posted February 6, 2008 You may be able to use the Run Macro in Variable command. Save the macro commands to a variable such as T1. Then use the Run Macro in Variable command to run what is stored in T1. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.