how to revert stack B, C and D from stack A
Mark Schonewille
m.schonewille at economy-x-talk.com
Sun Jan 7 08:45:01 EST 2007
Hi Claudi,
Revert simply reads the stackfile from disk again. It doesn't only
revert the substacks but also the mainstack. I don't think this is
what you want.
Perhaps you want to delete stacks stacks B, C and D and replace them
with a new version. First, not that this won't work if your stacks
are part of a standalone.
delete stack B
go to stack "/disk/folder/stackB.rev"
set the mainstack of "stackB" to "Your Mainstack"
save stack "Your Mainstack"
Same with stacks C and D. You cannot open the new stack before
deleting the old one. However, you could give the new stacks a
different name at first. Suppose that StackB Update is a substack of
your updating stack:
delete stack B
go to stack "StackB Update"
set the mainstack of "stackB Update" to "Your Mainstack"
set the name of stack "StackB Update" to "StackB"
save stack "Your Mainstack"
I hope this gives you some ideas.
Best,
Mark
--
Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Get your store on-line within minutes with Salery Web Store software.
Download at http://www.salery.biz
Op 7-jan-2007, om 14:04 heeft Claudi Cornaz het volgende geschreven:
> Hi all,
>
> Currently I am working on a updater for my app.
>
> I can download the new versions of the stacks, the app is a splash
> with
> a lot of seperate lib stacks.
> In my updater stack I then have a list of stacks that need to be
> reverted
> to use the new version, but how to do that? All stacks that need to be
> reverted are invissible
>
> I just can't get it to work. Each time the udater stack itself gets
> reverted, which
> is of course the current stack. So I tried to use send in time a
> "myRevert" message
> to each stack
>
> on MyRevert
> set the defaultStack to me
> revert
> end myRevert
>
> Alas still no dice.
>
> How can I do this, if somone has a suggestion please, it would be
> very helpfull.
>
> Thanks a lot,
>
> Claudi
More information about the use-livecode
mailing list