Passing information between cards

rev at armbase.com rev at armbase.com
Mon Feb 21 08:40:02 CST 2005


Quoting Karen <Karen at curlypaws.com>:

> Hi,
Hi Karen
>
> The main card has the field "edtText" which is where the styled text is.  On
> the secondary card, I set gFontName and gFontSize to hold the font name and
> size, as determined by the users choice from the various fields.  What I
> have tried is:

The Globals are gFontName etc
>
> set textFont of field "edtText" of card id 1002 of stack "Text Change" to
> tFontName
> set textSize of field "edtText" of card id 1002 of stack "Text Change" to
> tFontSize

BUT you have the code accessing a variable tFontName (not gFontName).

What happens if you use

set textFont of field "edtText" of card id 1002 of stack "Text Change" to
gFontName

etc etc

Cheers
Bob
>
> (I'd like to just do this with the selectedChunk, but I'm taking it a step
> at a time!).  This doesn't have any effect on the text in the field.  I'm
> guessing that my syntax is wrong, but I wondered if anyone was able to help?
>
> Thanks very much,
>
> Karen
>
>
> _______________________________________________
> 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