Page 1 of 1

Delete word now deletes spaces? LiveCode 7

Posted: Sun Sep 28, 2014 8:29 pm
by Mark Swindell
I haven't been doing much coding for quite some time, but was just trying to improve on an old stack I'd built, and it appears that LiveCode 7 now removes the spaces when deleting a word in a sentence. Such that in a field "sisters," which contains the expression, "I have two sisters," the command "Delete word 3 of field "sisters"" renders "I havesisters." I can't think this is correct behavior, but that is what I'm getting, and it took some time to figure out why my trusty handler of yesteryear was now failing so miserably.

So... is this the new behavior, a bug, or ... what?

Thanks,
Mark

Re: Delete word now deletes spaces? LiveCode 7

Posted: Sun Sep 28, 2014 10:48 pm
by Mark Swindell
I worked around the issue by changing "delete word 3" to "put empty into word 3," but I still don't understand how deleting a word removes both preceding and trailng spaces.

Re: Delete word now deletes spaces? LiveCode 7

Posted: Mon Sep 29, 2014 12:41 am
by FourthWorld
If that recipe is repeatable please file a big report.

Re: Delete word now deletes spaces? LiveCode 7

Posted: Mon Sep 29, 2014 4:03 am
by Mark Swindell
Yes, I just confirmed it again, just to be sure. I'll include the recipe here, and file a bug report.

In LiveCode 7.0.0, MacBook Pro, MacOS 10.9.4

Create a new main stack
Place a field on card 1
Place a button on card 1
In the field type: "I have two sisters."
In the button script type: Delete word 3 of field 1
Result: I havesisters.

Re: Delete word now deletes spaces? LiveCode 7

Posted: Mon Sep 29, 2014 4:38 am
by Mark Swindell
Bug ID 13550

Re: Delete word now deletes spaces? LiveCode 7

Posted: Mon Sep 29, 2014 2:10 pm
by Mark Swindell
Has been confirmed.

Re: Delete word now deletes spaces? LiveCode 7

Posted: Mon Sep 29, 2014 2:30 pm
by FourthWorld
Thanks for filing the report, Mark, and for noting the report number here so we can follow its progress.