Question about Macro_Result

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
evangelmike
Pro Scripter
Posts: 56
Joined: Sun May 11, 2008 9:39 pm

Question about Macro_Result

Post by evangelmike » Fri Jul 02, 2010 6:26 am

Greetings:

In the Online Help it says:
"Data can be returned to the calling macro by setting the MACRO_RESULT variable in the called script. After the script has been run MACRO_RESULT is available to the calling script."

Suppose one wants the called macro to return 6 results? Can this be done?
I would like to return 4 text values and 2 numeric values to the calling script.
May you have a blessed day!

Michael D Fitzpatrick
Reg. US Patent Agent

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Jul 02, 2010 9:54 am

You could return the data in a delimited string:

Let>MACRO_RESULT=str1|str2|str3|str5|999|888

Then just split them out in your calling macro afterwards using the Separate function.

Use whatever format you like/is appropriate.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

evangelmike
Pro Scripter
Posts: 56
Joined: Sun May 11, 2008 9:39 pm

Million Thanx! re advice to use Separate Function

Post by evangelmike » Fri Jul 02, 2010 3:25 pm

A million thanks! I will be trying it this evening.
May you have a blessed day!

Michael D Fitzpatrick
Reg. US Patent Agent

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts