errors & hierarchies (newbie)

Sarah Reichelt sarahr at genesearch.com.au
Wed Jun 8 20:35:12 EDT 2005


> A script in stack "xyz" says
>
> on mouseUp
>    do somestuff
>    go to stack "abc"
>    do someOtherstuff
> end end mouseUp
>
> stack "abc" has an openStack handler with an error in it:
>
> On openStack
>   do someStuff
>   start using stack "foo"
>   do someOtherStuff
>   pass openStack
> end openStack
>
> The handler in stack "abc" can't find stack "foo" for some reason  
> -- maybe stack "foo" is mis-named, or in the wrong place.
>
Where is stack "foo"? What is your stack structure? Are all three of  
these stacks in the same stack file or are they separate?
If they are separate, then you need to tell it where to find the  
stack file containing "foo", either by setting the defaultFolder or  
by providing the complete path to "foo".

HyperCard maintained a list of locations where you had stored stacks  
and searched all of them in turn so it was hardly ever necessary to  
locate a stack. Rev doesn't do this, you have to tell it where to  
find things or tell it which folder to search.

HTH,
Sarah
  


More information about the use-livecode mailing list