General Macro Scheduler discussion
Moderators: JRL, Dorian (MJT support)
-
Enricoys
- Junior Coder
- Posts: 27
- Joined: Mon Jan 06, 2014 1:18 pm
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" "
-
Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
-
Contact:
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%+""""+" "+""""}