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 <[email protected]> Sender: [email protected] Date: Thu, 15 Dec 2011 16:04:31 To: How to use LiveCode<[email protected]> Reply-To: How to use LiveCode <[email protected]> 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 > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
