the mouseText and Unicode
Mark Schonewille
m.schonewille at economy-x-talk.com
Sat Jun 18 07:10:48 EDT 2011
Hi Richmond,
The itemDel can be only one char/byte long. If the useUnicode is true, then numToChar(32) returns 2 bytes. Hence the error. The docs are correct.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce
On 18 jun 2011, at 12:28, Richmond Mathewson wrote:
>
>>>> Is there an equivalent to the mouseText, or the mouseChunk, or the
>>>> mouseCharChunk that is Unicode-aware? Or some ingenious way to retrieve the
>>>> word that the user clicked?
>
> doing THIS:
>
> on mouseDown
> set the useUnicode to true
> set the unicodeText of fld "fEND" to the unicodeText of the clickText
> end mouseDown
>
> only works with the FIRST word!
>
> changing clickText to clickChunk gets exactly the same result.
> --------------------------------------------------------
>
> so, here I am mucking around with itemDelimiter..........................
>
> the Documentation states that I can write this:
>
> set the itemDelimiter to numToChar(32)
>
> but this throws a bug message: " execution eror . . . (Chunk: source is not a character) near " ", char 4
>
> which would suggest the Docs are wrong ???????
>
> these: set the itemDelimiter to " " / set the itemDelimiter to space
>
> also result in NO JOY.
More information about the use-livecode
mailing list