insertion point in a field

Ken Ray kray at
Thu Sep 19 09:20:01 EDT 2002


You can get the selectedChunk. If it is just a blinking insertion point it
will return a value which looks odd (something like "char 4 to 3 of field
1", but this is quite useful. You see "char 4 to 3 of field 1" means that
the insertion point is blinking between characters 3 and 4 of field 1. Why
isn't it "char 3 to 4 of field 1"? Because this would mean characters 3 and
4 have been highlighted (selected), just as  "char 3 to 3" would mean that
character 3 was highlighted. I know it looks odd, but it works...

Ken Ray
Sons of Thunder Software
Email: kray at
Web Site:

----- Original Message -----
From: "Sylvain Le Gourriérec" <sylvain.legourrierec at>
To: <use-revolution at>
Sent: Thursday, September 19, 2002 1:53 AM
Subject: insertion point in a field


how can I get the location (e.g. char 25) of the insertion point in a text


Sylvain Le Gourriérec  --  développement  -- son-video-distribution

------------- I am working with Windows 2000, Revolution 1.1.1, MySQL 3.23 &

More information about the Use-livecode mailing list