select after the selectedText

Mark Wieder mwieder at ahsoftware.net
Wed Jul 6 03:38:21 EDT 2011


Richmond-

Wednesday, July 6, 2011, 12:19:41 AM, you wrote:

> I have just tried this:

> on mouseUp
>     set the useUnicode to true
>     set the unicodeText of the selectedText to numToChar(2340)
>    select after char -1 of field X
> end mouseUp

Untested, but what about

on mouseUp
  local tChunkChar, tChunkField
  
  set the useUnicode to true
  put word 4 of the selectedChunk into tChunkChar
  put word -1 of the selectedChunk into tChunkField
  set the unicodeText of the selectedText to numToChar(2340)
  select after char tChunkChar of field tChunkField
end mouseUp

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list