moving the cursor

Ken Ray kray at
Mon Dec 25 16:51:13 EST 2006

On 12/25/06 3:18 PM, "Stephen Barncard" <stephenREVOLUTION at>

> Hi, gang,
> hope everyone is having a great time w/ family and friends today.
> Also a good day to fly. I'm in Dallas/FW airport at the moment.
> how does one move the cursor character by character in a script? I'm
> using 2.7.4
> I tried
> get the loc of character x of field "x"

If you want to know where the insertion point is, you can check the
"selectedChunk"; if you want to know the x,y location of the current text
selection, check the "selectedLoc".

> but rev complains.
> sending "arrowkey left" doesn't work either.

Looks like you're trying to move the insertion point one character to the
left? If so, you can do it this way:

  select after char (word 4 of the selectedChunk)-1 of fld "MyField"


Ken Ray
Sons of Thunder Software, Inc.
Web site:
Email: kray at

More information about the Use-livecode mailing list