Passing Lists

Ken Ray kray at sonsothunder.com
Wed Jan 15 13:46:01 EST 2003


Rob,

I just tried this using the message box. "Condense" is not a text style, but
you can do this:

  set the textStyle of char 1 to 5 of fld "Text" to bold,italic

and it works...

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Rob Cozens" <rcozens at pon.net>
To: <use-revolution at lists.runrev.com>
Sent: Wednesday, January 15, 2003 12:11 PM
Subject: Passing Lists


> Hi All,
>
> Today's mystery:
>
> Simple stack: one field of text, "Text", and one button "Set Style".
>
> on mouseUp
>    ask "What style?"
>    put it into theStyle
>    set the textStyle of char 20 to 40 of field "Text" to theStyle
> end mouseUp
>
> All is well so long as the style is a single item (eg: "plain",
> "italic", "box", etc.), BUT try "bold,condense" or any combination of
> multiple styles and nothing happens.  If I run the script in the
> debugger, I get "Margin is not an integer".
>
> Who wants to be Sherlock of the Day?
>
> PS: I tried bold,condense and "bold,condense" with the same result.
> --
>
> Rob Cozens
> CCW, Serendipity Software Company
> http://www.oenolog.com/who.htm
>
> "And I, which was two fooles, do so grow three;
> Who are a little wise, the best fooles bee."
>
> from "The Triple Foole" by John Donne (1572-1631)
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list