I may have just missed it in the docs, but how do you get data from another card and other substacks.
Example: I have a mainstack that need to retrieve data from some fields on a sub stact that contains settings for the whole program.
My if then statement would look something like this....
if field 1 is "1" and field 2 is "A" then ... Get the data from substack "data" card "race 1" field "race info"
Thanks
Use fields and data from other cards and substacks
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
You got it almost right, no1g8tor:Get the data from substack "data" card "race 1" field "race info"
get fld "race info" of cd "race 1" of stack "data"
or
put fld "race info" of cd "race 1" of stack "data" into myVar
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode