Ins and Outs of start using
    mike at doub.com 
    mike at doub.com
       
    Thu Dec 15 19:50:55 EST 2011
    
    
  
Thanks to both Bob and Ken. 
I think this explains why is see different behaviors when I double click on a stack to start up vs opening the stack from livecode development  environment. 
Regards,
   Mike
Sent from my BlackBerry device on the Rogers Wireless Network
-----Original Message-----
From: Bob Sneidar <bobs at twft.com>
Sender: use-livecode-bounces at lists.runrev.com
Date: Thu, 15 Dec 2011 16:04:31 
To: How to use LiveCode<use-livecode at lists.runrev.com>
Reply-To: How to use LiveCode <use-livecode at lists.runrev.com>
Subject: Re: Ins and Outs of start using
Make sure the stack is listed in the stack files section of the stack properties inspector. 
Bob
On Dec 15, 2011, at 2:36 PM, Michael Doub wrote:
> Can someone help me understand the proper usage of start using?   I have a stack that contains a number of scripts that I would like to use as part of a library.   I keep running into a failure situation where the stack that I wish to "start using" can't be found.   I have the main stack and the library stack in the same directory.
> 
> In the code below, what directory is xyz.livecode expected to be in?  with the engine? with the main stack?   I have been able to force it to work by always coding the complete path but I have see the code used by others and I would like to clearly understand the default behaviours.
> 
> Thanks
>   Mike
> 
> 
> 
> try
>    start using stack "xyz.livecode"   -- the filename
>  end try
>  set the wholeMatches to true
>  if ("xyz" is not among the lines of the StacksInUse) \   -- the stack name of the library in the file
>  then start using stack "xyz"                     
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
    
    
More information about the use-livecode
mailing list