moving the cursor

Jeanne A. E. DeVoto revolution at jaedworks.com
Mon Dec 25 17:27:07 EST 2006


At 3:18 PM -0600 12/25/2006, Stephen Barncard wrote:
>how does one move the cursor character by character in a script? I'm using 2.7.4

select char 4 to 3 of field "x" -- puts it between 3 and 4

select char x to x-1 of field "x" -- puts it before char x

select char (word 2 of the selectedChunk + 1) \
     to (word 2 of the selectedChunk) of the selectedField -- advances 1 char
-- 
jeanne a. e. devoto ~ revolution at jaedworks.com
http://www.jaedworks.com



More information about the use-livecode mailing list