Simple Scoping Question

Rob Cozens rcozens at pon.net
Wed Apr 20 11:16:01 EDT 2005


Hi Dave,

>e.g. if Stack A
>
>does a start using start using stack "GlobalStack"
>
>and thean Stack A calls a Function in "GlobalStack" that refers to "this 
>stack" does that refer to "Stack A" or "GlobalStack" ?
>
>Does this work the same way if the Stacks in question are both main stacks 
>and does it work the same way in a Standalone Application?

"This" always refers to "the currently selected", whether referencing 
stacks, cards, groups, or individual controls.  Substitute
'stack "GlobalStack"' for "this stack" in GlobalStack's stack script.

Rob Cozens, Staff Conservator
Mendonoma Marine Life Conservancy

"It is contrary to human welfare to contribute in any way...
  to the degradation of the sea's capacity to support life."

  -- Walter Hickel, U. S. Secretary of the Interior, 1971
     in "From Abundance to Scarcity" by Michael L. Weber 



More information about the use-livecode mailing list