> if you don't define the required global again, the desired value is not
there.

You have to declare the global in the script where you want to use its
value, but you don't have to define the value again.

from the Main Stack script:

global gMyName
put "Slava" into gMyName

from a substack, any script:

global gMyName
answer gMyName --you see a dialog with "Slava" in it

S.



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to