start using and standalones??
dburgun at dsl.pipex.com
Sat Mar 25 13:10:06 EST 2006
Yes, I think you are right from my experimenting.
I would like to be able to to only stop using a stack when the last
stack that did a start using calls stop using!
Do you think that this would work?
add 1 to gLibStackUsageCount
start using "LibStack"
subtract 1 from gLibStartUsageCount
if gLibStackUsageCount <= 0 then
stop using "LibStack"
Thanks a lot
All the Best
On 25 Mar 2006, at 17:59, Mark Smith wrote:
> I believe 'start using' puts the script of it's object at the back
> of the message path, so is effectively global.
> 'Stop using' removes it again, so it should only be necessary to
> 'start using' once, at start up.
> On 25 Mar 2006, at 17:52, David Burgun wrote:
>> I have been experimenting with "start using" in the IDE:
>> If I have 2 stacks (mainStacks), Test1 and Test2.
>> If I do: start using "LibStack" in Test1, I can then access
>> functions in "LibStack" from either Test1 or Test 2.
>> If I do: stop using "LibStack| in Test1 or Test2 then I cannot
>> access functions in LibStack from either stack.
>> Is this the same if I had a standalone app?
>> I usually ship my RunRev apps as a number of discrete .rev files
>> and use a Dummy Splash Screen Stack which I build into a
>> Standalone and launch this to get the ball rolling.
>> In this case would I need to perform the start using in all stacks
>> that use the library or just once?
>> Thanks a lot
>> All the Best
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode