Referring to an object from another card

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
abanowBUSTfGf
Posts: 63
Joined: Sat Dec 22, 2012 3:01 am

Referring to an object from another card

Post by abanowBUSTfGf » Thu Jan 31, 2013 12:04 pm

I have an text paragraph in a second card and want to refer to this object
in my first card i.e. put (second card contents) into (first card field).
Is there a way I can do this?
Thanks

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Referring to an object from another card

Post by Klaus » Thu Jan 31, 2013 12:15 pm

Hi abanowBUSTfGf,

you can address EVERYTHING in Livecode, even objects of stack (files) that are not open,
as long as you add the correct and complete "descriptor" so Livecode can find the object
...
put the text of fld "a field somewhere..." of card "another card" into fld "the field on this card"
...
put the text of fld "a field somewhere..." of card "another card" of stack "a complete other stack" into fld "the field on this card"
...

You really should work through these stacks to get even more basics of Livecode 8)
http://www.runrev.com/developers/lesson ... nferences/


Best

Klaus

Post Reply