Linking Fields

Devin Asay devin_asay at byu.edu
Wed Nov 15 12:56:45 CST 2006


On Nov 15, 2006, at 11:31 AM, Ted Mills wrote:

> In the example submitted in my last question about linking fields  
> from card
> to card:
>
> put fld "thisField" into fld "thatField of cd 2
> or
> set the text of fld "thatField" of cd 2 to fld "thisField"
>
> In this example data is being placed in a field on cd 2, I would  
> like to go
> the other way (data from card 2 to be used on card 1) Would the  
> code below
> work or is there a better way?

Almost. Try this insteaad...
>
> put fld of cd 2 "thatField" into fld of cd1 "thisField"
> or
> set the text of cd 1 "thisField" to cd 2 fld "thatField"


put fld "thatField" of cd 2 into fld "thisField" of cd 1
or
set the text of fld "thisField" of cd 1 to the text of fld  
"thatField" of cd 2

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the use-livecode mailing list