defining and using globals in an application

Slava Paperno slava at lexiconbridge.com
Wed Jul 6 23:10:01 EDT 2011


> 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.






More information about the use-livecode mailing list