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.
Question about Macro_Result
Moderators: Dorian (MJT support), JRL
-
- Pro Scripter
- Posts: 56
- Joined: Sun May 11, 2008 9:39 pm
Question about Macro_Result
May you have a blessed day!
Michael D Fitzpatrick
Reg. US Patent Agent
Michael D Fitzpatrick
Reg. US Patent Agent
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
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.
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Pro Scripter
- Posts: 56
- Joined: Sun May 11, 2008 9:39 pm
Million Thanx! re advice to use Separate Function
A million thanks! I will be trying it this evening.
May you have a blessed day!
Michael D Fitzpatrick
Reg. US Patent Agent
Michael D Fitzpatrick
Reg. US Patent Agent