Delete word now deletes spaces? LiveCode 7

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Mark Swindell
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10
Joined: Tue Dec 05, 2006 11:48 pm

Delete word now deletes spaces? LiveCode 7

Post by Mark Swindell » Sun Sep 28, 2014 8:29 pm

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

Mark Swindell
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10
Joined: Tue Dec 05, 2006 11:48 pm

Re: Delete word now deletes spaces? LiveCode 7

Post by Mark Swindell » Sun Sep 28, 2014 10:48 pm

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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Delete word now deletes spaces? LiveCode 7

Post by FourthWorld » Mon Sep 29, 2014 12:41 am

If that recipe is repeatable please file a big report.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Mark Swindell
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10
Joined: Tue Dec 05, 2006 11:48 pm

Re: Delete word now deletes spaces? LiveCode 7

Post by Mark Swindell » Mon Sep 29, 2014 4:03 am

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.

Mark Swindell
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10
Joined: Tue Dec 05, 2006 11:48 pm

Re: Delete word now deletes spaces? LiveCode 7

Post by Mark Swindell » Mon Sep 29, 2014 4:38 am

Bug ID 13550

Mark Swindell
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10
Joined: Tue Dec 05, 2006 11:48 pm

Re: Delete word now deletes spaces? LiveCode 7

Post by Mark Swindell » Mon Sep 29, 2014 2:10 pm

Has been confirmed.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Delete word now deletes spaces? LiveCode 7

Post by FourthWorld » Mon Sep 29, 2014 2:30 pm

Thanks for filing the report, Mark, and for noting the report number here so we can follow its progress.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply