Macro> Command returns only first variable
Moderators: JRL, Dorian (MJT support)
- tony_smith
- Pro Scripter
- Posts: 70
- Joined: Wed May 14, 2003 8:25 pm
- Location: Vancouver BC Canada
Macro> Command returns only first variable
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?
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?
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
viewtopic.php?t=1132
MJT Net Support
[email protected]
[email protected]
To update - we have fixed this and will release the update very soon.
MJT Net Support
[email protected]
[email protected]
- tony_smith
- Pro Scripter
- Posts: 70
- Joined: Wed May 14, 2003 8:25 pm
- Location: Vancouver BC Canada
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]
[email protected]
- tony_smith
- Pro Scripter
- Posts: 70
- Joined: Wed May 14, 2003 8:25 pm
- Location: Vancouver BC Canada
- tony_smith
- Pro Scripter
- Posts: 70
- Joined: Wed May 14, 2003 8:25 pm
- Location: Vancouver BC Canada
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.
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.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
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
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- tony_smith
- Pro Scripter
- Posts: 70
- Joined: Wed May 14, 2003 8:25 pm
- Location: Vancouver BC Canada