Location of the insertion point in a field

Pat Trendler ptrendler at bigpond.com
Sun Mar 20 20:20:51 EST 2005


Mikey,

>From the docs (search Topics)

How do I find out where the insertion point is?
You use the selectedChunk function to find out the location of the insertion 
point.

When there is an insertion point but no text is selected, the selectedChunk 
function returns an expression of the form char nextChar to prevChar of 
field fieldNumber. For example, if the insertion point is in field 3, 
between character 10 and character 11, the selectedChunk function returns 
char 11 to 10 of field 3.



HTH

Pat

----- Original Message ----- 
From: "Mikey" <mikeythek at gmail.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: Monday, March 21, 2005 11:02 AM
Subject: Location of the insertion point in a field


> Well, I tried searching the docs.
> How do I figure out where the cursor (insertion point) is in a field?
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution 



More information about the Use-livecode mailing list