troubles getting a global thisThing,thatThing,theOtherThing to work.

Ken Ray kray at sonsothunder.com
Sat Apr 9 23:58:55 EDT 2005


On 4/9/05 10:22 PM, "Paul Salyers" <ps1 at softseven.org> wrote:

> Dear Rev Programmer,
> 
> I need help on passing a global variable from the stack to the cards on at
> least a 2 card stack.
> 
> I would like to pass my age to both cards (24) we will say, when the cards
> open.

script of stack:
---------------
global gMyAge

on openStack
  put 24 into gMyAge
end openStack

script of cards:
----------------
global gMyAge

on openCard
  put gMyAge into field 1  -- or wherever you need it
end openCard

> Please help a working stack would be nice.

Yes, but not necessary since it's so simple... :-)


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list