Page 1 of 1

Use fields and data from other cards and substacks

Posted: Tue Nov 27, 2007 5:14 pm
by no1g8tor
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

Posted: Tue Nov 27, 2007 7:10 pm
by Mark
Get the data from substack "data" card "race 1" field "race info"
You got it almost right, no1g8tor:

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

Posted: Wed Nov 28, 2007 5:09 pm
by no1g8tor
Thanks, I am learning.