Inserting unicodeText into a unicode string? #3
Richmond
richmondmathewson at gmail.com
Sun Aug 29 11:53:07 EDT 2010
On 08/29/2010 05:57 PM, Mike Bonner wrote:
> In this case, the selectedtext is a property that contains no
> positional information. You can't do math on selectedtext unless it
> just so happens to contain a number.
> So, to do what you want you would need to use selectedchunk instead,
> check it to see a) if its only an insertion point (word 4 of the
> selectedchunk - word 2 of the selectedchunk will = -1 if this is the
> case) then if I recall correctly, word 2 of the selectedchunk is the
> cursor position so checking char (word 2 of the selectedchunk - 1)
> will give you the char reference that you're looking for.
>
>
I'd be very interested to know exactly where you recall 'word 4',
'word 2' and so on from as I cannot find anything like this in reference
to selectedChunk.
More information about the use-livecode
mailing list