Stack Context/Scope Question
David Burgun
dburgun at dsl.pipex.com
Wed Dec 7 07:44:18 EST 2005
Hi,
I am slightly confused as to the use of "this" and "me" when used for
a Stack, for instance, if I have two stacks:
GlobalStack, contains global functions in the Stack Script, as so:
function GetStackFileName
local myFileName
put the filename of this stack into myFileName
return myFileName
end GetStackFileName
function DoSomethingElse
local myFileName
put GetStackFileName() into myFileName
return myFileName
end DoSomethingElse
CallerStack, calls functions in GlobalStack, the stack script is as so:
function DoAnotherThing
local myFileNameA
local myFileNameB
put GetStackFileName() into myFileNameA
put DoSomethingElse () into myFileNameB
end DoAnotherThing
What should myFileNameA and myFileNameB be set to?
Thanks a lot
All the Best
Dave
More information about the use-livecode
mailing list