Inserting unicodeText into a unicode string?

Mark Schonewille m.schonewille at
Thu Aug 26 20:54:21 EDT 2010

Hi Richmond,

In the openField handler or the selectionChanged handler, you need to add a script, which checks whether the number of chars/bytes before the text insertion point is even. If it isn't, move the insertion point by 1 character/byte.

Kind regards,

Mark Schonewille

Share the clipboard of your computer over a local network with Clipboard Link

Op 26 aug. 2010 om 23:07 heeft Richmond <richmondmathewson at> het volgende geschreven:

> [Working on my G4 MacMini at present]
> So here I am with a long unicodeText string in a field and I want to put some more unicodeText inside it
> (where I set my cursor) . . .
> Adding text at the end is easy:
> Set the unicodeText of fld "XYZ" to the unicodeText of fld "XYZ" & numToChar(50000)
> Adding text at the start is easy:
> Set the unicodeText of fld "XYZ" to numToChar(50000) & the unicodeText of fld "XYZ"
> HOWEVER: I want to put my cursor somewhere in the unicodeText in fld "XYZ" and
> add my numToChar(50000) there . . . .
> Love, Richmond.
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list