Forward DEL

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

SparkOut
Posts: 2946
Joined: Sun Sep 23, 2007 4:58 pm

Re: Forward DEL

Post by SparkOut » Sat Jul 25, 2020 3:14 pm

Daft is possible, but Brian's explanation really made it make sense to me.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7391
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Forward DEL

Post by jacque » Sat Jul 25, 2020 6:20 pm

@Craig, think of it in terms of pixels which is how the engine would calculate it. In that perspective Brian's explanation makes it clear why the numbers are reversed. I confess I never thought of it that way but Brian's head usually operates closer to the metal than mine.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10319
Joined: Wed May 06, 2009 2:28 pm

Re: Forward DEL

Post by dunbarx » Sat Jul 25, 2020 6:27 pm

Hmmm.

Make sense? It is a convention, consistent and precise, but it doesn't make "sense".
hink of it this way:
The first number indicates the start of the selection highlight (i.e. the left of the indicated character)
The second number indicates the end of the selection highlight (i.e. the right of the indicated character)
A blinking cursor does not "include" either of its neighbors, though each neighbor does bracket its location. In that sense, when Brian says "the left of the indicated character, I guess that means "left of, but not including" that character. But not really the "start of the selection".

Well and good. This is all academic syntactic hubbub, none of it "daft", Richmond notwithstanding.

I see the reversal of the order as simply a construct indicating a selection of zero length, a blinker, and its bracketing chars. I got used to it long ago, as Jacque mentioned, in HC.

Craig

Post Reply