Re: Expletive Deleted.

2011-03-28 Thread Bob Sneidar
Being an IT guy I've learned to assume nothing and consider anything. Nothing personal. Bob On Mar 28, 2011, at 9:19 AM, Richmond wrote: > On 03/28/2011 06:38 PM, Bob Sneidar wrote: >> Is this a typo or did you copy this from your script? >> >> Bob >> >> >> On Mar 27, 2011, at 9:24 AM, Ric

Re: Expletive Deleted.

2011-03-28 Thread Richmond
On 03/28/2011 06:38 PM, Bob Sneidar wrote: Is this a typo or did you copy this from your script? Bob On Mar 27, 2011, at 9:24 AM, Richmond wrote: set th useUnicode to true Oh, come on; give me some credit. A typo of course! ___ use-livecode mai

Re: Expletive Deleted.

2011-03-28 Thread Bob Sneidar
Is this a typo or did you copy this from your script? Bob On Mar 27, 2011, at 9:24 AM, Richmond wrote: > set th useUnicode to true ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and mana

Re: Expletive Deleted.

2011-03-27 Thread Colin Holgate
On Mar 27, 2011, at 12:44 PM, Richmond wrote: > For some queer reason nothing happens with that. Where is the mouseup handler? In my case is was in a button. You could have it in the field too, but it would need a right mouse click to make the text disappear. __

Re: Expletive Deleted.

2011-03-27 Thread Richmond
On 03/27/2011 07:41 PM, Colin Holgate wrote: On Mar 27, 2011, at 12:24 PM, Richmond wrote: on mouseUp set th useUnicode to true set the useUnicodeText of the selectedText to numToChar(65288) select after the selectedText end mouseUp Is it possible you're doing it in a too complicated

Re: Expletive Deleted.

2011-03-27 Thread Colin Holgate
On Mar 27, 2011, at 12:24 PM, Richmond wrote: > on mouseUp > set th useUnicode to true > set the useUnicodeText of the selectedText to numToChar(65288) > select after the selectedText > end mouseUp Is it possible you're doing it in a too complicated way? Here's my script, which also leav

Re: Expletive Deleted.

2011-03-27 Thread Richmond
on mouseUp put the number of chars in fld "TESTEXT" into CHARZ put (CHARZ - 2) into HARZ set the unicodeText of fld "TESTEXT" to char 1 to HARZ of fld "TESTEXT" end mouseUp works very well indeed (chopping off 2 because this is unicodeText) deleting text from the end of the string. The pro

Re: Expletive Deleted.

2011-03-27 Thread Richmond
On 03/27/2011 07:14 PM, Colin Holgate wrote: Either one of your ideas is working ok for me. How are you testing? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: Expletive Deleted.

2011-03-27 Thread Colin Holgate
Either one of your ideas is working ok for me. How are you testing? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/l

Re: Expletive Deleted.

2011-03-27 Thread Richmond
On 03/27/2011 07:09 PM, Mark Schonewille wrote: Richmond, Often I do things like set the unicodeText of fld x to char 1 to (word 2 of the selectedChunk - 1) of the unicodeText of fld x& myNewUnicodeText& char (word 4 of the selectedChunk + 1) to -1 of the unicodeText of fld x I don't know

Re: Expletive Deleted.

2011-03-27 Thread Mark Schonewille
Richmond, Often I do things like set the unicodeText of fld x to char 1 to (word 2 of the selectedChunk - 1) of the unicodeText of fld x & myNewUnicodeText & char (word 4 of the selectedChunk + 1) to -1 of the unicodeText of fld x I don't know whether this still works in the latest verion of L