It's possible that I'm doing something wrong here, but this looks like it might be a bug. I figured I'd ask first.
====== Symptoms:
Example file:
Given the following:
Event: For "loop" from 1 to 10.
Action: EditBox: Set text to: EditBox.Text + "x" + NewLine
I get the following output, (though I have replaced the unidentified-character squares with sharp signs "#" so that they would be visible in this post).
x########
x#######
x######
x#####
x####
x###
x##
x#
x
x
From the event and action, it seems that we should see exactly one new line after each "x". Obviously something else is happening.
====== Possible Cause:
It looks like the NewLine expression inserts a new-line-generator-marker into a string of text, and then at the end of the event, all the existing markers are triggered once to generate a new line character at their respective current positions. This works fine for most situations, but when placed inside a loop, a new-line-generator marker can be placed into a string on the first loop step, and then triggered multiple times by all the remaining steps as each loop step reaches its end. This could explain why NewLine expressions evaluated in earlier loops seem to be transformed into more new lines than those in latter loops.
====== Possible Workaround:
As a work around, I might be able to use a special character (or character sequence) in place of the NewLine expression when inside loops, and then convert the special character(s) to new lines afterwards.
If anyone has any information pleas let me know.
Thanks.