On Aug 26, 2014, at 9:19 AM, Jacques Hausser wrote:

> As I'm checking version 7.10 DP, your solution is not working... I rummaged 
> into the "revNewScriptEditor" stack and found that "revSEColorize" doesn't 
> exist anymore (or it's hidden somewhere else).
> But it's even simpler! here the script of my button:
> 
> on mouseUp
>   put the script of button "TestButton" into fld "FScript"
>   _internal script colorize char 1 to (the number of chars of field 
> "FScript") of field "FScript"
> end mouseUp
> 
> ... works perfectly ! (although I strictly don't know what an "_internal 
> script" is). I guess it is not usable on a standalone.

Hmm. Turns out that your simplified script works fine for me in LC 5.5.1 too -- 
the "sePrefInit" and "revSEColorize" commands seem to be unnecessary anyway. 
Interestingly, if I try to do this:
   _internal script colorize char 1 to -1 of field "FScript"
it gives an error. Apparently whatever handles an "_internal" script can't 
handle anything but the original old chunk expressions.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


_______________________________________________
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/listinfo/use-livecode

Reply via email to