Macro> Command returns only first variable

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
tony_smith
Pro Scripter
Posts: 70
Joined: Wed May 14, 2003 8:25 pm
Location: Vancouver BC Canada

Macro> Command returns only first variable

Post by tony_smith » Thu Dec 02, 2004 11:14 pm

This command used to work (I now have MSched Pro 7.3.03);

Macro>U:\macros\EXTRACT.scp /spltfl2X=%spltfl2% /fnm=%fspec% /LOGFILE=U:\macros\Log\extract.log

Now the command carries only the first variable declared in the command line to the called macro.

I have double-checked the variables and followed them through the debug and when the other script is called, I displayed then using MessageModal. If I change the order of the variables on the command line, only the first one makes it to the called macro.

This is the only MS script I have that uses Macro> with more than one variable, so I have no others to compare it to.

Am I doing something wrong?

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Thu Dec 02, 2004 11:17 pm

No. But you did fail to see this same topic was discussed only yesterday and is only about two rows down from your post:

viewtopic.php?t=1132
MJT Net Support
[email protected]

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Thu Dec 02, 2004 11:19 pm

To update - we have fixed this and will release the update very soon.
MJT Net Support
[email protected]

User avatar
tony_smith
Pro Scripter
Posts: 70
Joined: Wed May 14, 2003 8:25 pm
Location: Vancouver BC Canada

Post by tony_smith » Thu Dec 02, 2004 11:35 pm

No, I did not fail to see the other post, however; there I could not find a distinct equivalence in the convoluted dialogue, nor was there a mention that there was an iminent "fix" that I could distinguish. Thanks anyway for your constructive remark. :roll:

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Thu Dec 02, 2004 11:42 pm

No problems. The last page of that convoluted dialogue reported that a bug was found and also indicated that a fix would be imminent. Needles and haystacks I guess.
MJT Net Support
[email protected]

User avatar
tony_smith
Pro Scripter
Posts: 70
Joined: Wed May 14, 2003 8:25 pm
Location: Vancouver BC Canada

Post by tony_smith » Fri Dec 03, 2004 4:50 pm

Thanks for the patch.

User avatar
tony_smith
Pro Scripter
Posts: 70
Joined: Wed May 14, 2003 8:25 pm
Location: Vancouver BC Canada

Post by tony_smith » Fri Dec 03, 2004 8:50 pm

I have applied the upgrade 7.3.04, but I am still unable to transfer all the variables to the called macro...

I declare the variables in the calling macro...

Let>spltfl2=U:\Reports\Temp\splitrej2.txt

and

Let>spltfl=U:\Reports\Temp\splitrej.txt
Let>x=x+1
ReadLn>spltfl,x,fspec

And can read them with MessageModal> before executing the line...


Macro>U:\macros\EXTRACT.scp /spltfl2X=%spltfl2% /fnm=%fspec% /LOGFILE=U:\macros\Log\extract.log

As soon as the called script "EXTRACT" executes, I read the variables "spltfl2X" and "fnm" with MessageModal> and get "%spltfl2%" ""fspec%" respectively.

The variable "LOGFILE" transfers correctly even if I change its position in the line.

I looked through the discussion initiated by rh2001, but was not able to resolve my issue from the information.

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 Dec 03, 2004 9:24 pm

Tony,

Log into the download area - same place you downloaded 7.3.04 and download ms73041.zip and extract the exe into your msched directory (close Macro Scheduler first) and let me know if this fixes the problem.

Marcus
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

User avatar
tony_smith
Pro Scripter
Posts: 70
Joined: Wed May 14, 2003 8:25 pm
Location: Vancouver BC Canada

Post by tony_smith » Fri Dec 03, 2004 9:55 pm

That worked Marcus... many thanks!

Tony

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