Let Problem

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Robbyn
Junior Coder
Posts: 43
Joined: Tue Feb 15, 2005 9:55 pm

Let Problem

Post by Robbyn » Mon Nov 20, 2006 12:47 pm

What is wrong with the following:

Day>the_day
Month>the_month
Year>the_year
let>date=the_day+"-"+the_month+"-"+the_year

"date" is not created.

it should contain

2006-10-12 or as the date maybe.
Robin

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

Post by Marcus Tettmar » Mon Nov 20, 2006 1:10 pm

Just do this:

Let>date=%the_day%-%the_month%-%the_year%

Or if you prefer the traditional way do:

Let>date={%the_day%+"-"+%the_month%+"-"+%the_year%}
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

Jmac2501
Pro Scripter
Posts: 76
Joined: Tue Nov 15, 2005 8:11 pm

Post by Jmac2501 » Mon Feb 26, 2007 2:27 am

Coudn't you also use;

Day>the_day
Month>the_month
Year>the_year
concat>%the_day% %the_month% %the_year%
message>the_day

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

Post by Marcus Tettmar » Mon Feb 26, 2007 8:43 am

No, because that's not how ConCat works. ConCat concatinates two variables and requires a comma separating them.

ConCat>string1,string2

It is largely superseded by the ability to embed variables in % symbols or use complex expressions. But is there for backwards compatibility reasons.
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