passed value produces a calculated result

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
BrettHemphill
Newbie
Posts: 5
Joined: Thu Aug 03, 2006 11:07 pm

passed value produces a calculated result

Post by BrettHemphill » Thu Aug 03, 2006 11:24 pm

So I pass a variable to another macro and my text variable gets calculated in the recieving macro.

Let>CopyRight=2003 - 2006
Macro>G:\Macros\FinalTouchUp.scp /cr2=%CopyRight%

Resulting in cr2 = -3
When I need cr2 = 2003 - 2006

Can anyone help me retain my text value without forcing quotes around the text. That is my current workaround, wich is to pass "2003 - 2006" to cr2 and then strip the quotes from it.

:?: It only gets converted during the hand off! It allways maintains the correct value whithin the initial macro.

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 Aug 04, 2006 12:33 am

Hi,

2003 - 2006 is a mathematic expression, so you want:

Let>CopyRight={"2003 - 2006"}
Macro>d:\test.scp /cr2={"%CopyRight%"}

Or:

Macro>d:\test.scp /cr2={"2003 - 2006"}
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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