Passing Lists

Richard Gaskin ambassador at fourthworld.com
Wed Jan 15 15:25:00 EST 2003


Jeanne A. E. DeVoto wrote:

> At 11:08 AM -0800 1/15/03, Richard Gaskin wrote:
>> This raises a point:  when styles for a specified chunk are mixed, getting
>> the textstyle returns "mixed".  That's not so bad and I understand why it
>> does that, but in such cases you cannot set the textstyle to the same value
>> you get from querrying it.
>> 
>> Any suggestions for a more self-constent form that would allow simple syntax
>> like this to work?:
>> 
>> set the textstyle of btn 1 to the textstyle of char 20 to 30 of fld 1
> 
> It depends: what do you want the above statement to do? A button can't have
> mixed text: the button's entire label has to be a single style or set of
> styles.
> 
> So if char 20 to 25 of the field is bold italic, say, and char 26 to 30 is
> condensed underline, the statement above is ambiguous: do you want the
> button to be bold italic? Condensed underline? Bold italic condensed
> underline?

Therein lies the conundrum.

At a minimum it wuld be nice if such orthogonal syntax didn't throw an
error, but merely left the target text style alone ang noted the error in
the result.

Beyond that, magic psychic elves should be implemented in the interpreter to
allow simple resolution of such conflicting style assignments.
 
-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.1: Publish any database on any site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the use-livecode mailing list