Changed string behaviour version 14.4.01

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
Enricoys
Junior Coder
Posts: 24
Joined: Mon Jan 06, 2014 1:18 pm

Changed string behaviour version 14.4.01

Post by Enricoys » Mon Oct 23, 2017 2:44 pm

I observed a change in string processing behaviour in version 14.4.01. See the test code below.
Is this intended to do so? If yes, fine although I have to spend serious time in rewriting my scripts. If not, then I will wait until this bug is removed.

Code: Select all

Let>quote="
Let>FN=ABCD
Let>merge={%FN%+%quote%+" "+%quote%}
// previous version result: ABCD" "
// version 14.4.01 result: error message 'Line .. not appropriate'.

Let>merge=%FN%%quote% %quote%
// version 14.4.01 result: ABCD" " 

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

Re: Changed string behaviour version 14.4.01

Post by Marcus Tettmar » Tue Oct 24, 2017 11:07 am

Quotes should always have been double quoted, because they are of course a special character in complex expressions - the string delimiter. So to use them inside a string you'd need to double quote them like you do in VBscript. E.g.:

Let>merge={%FN%+""""+" "+""""}
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
Sign up to our newsletter for free automation tips, tricks & discounts