Delete stack

Peter Haworth pete at lcsql.com
Wed Jun 27 16:52:59 CDT 2012


Thanks Paul, you nailed it!  I did as you suggested, except I simply closed
the stack after setting destroyStack to true rather than delete it and all
worked.  I had to refresh the Application Browser to see it disappear but
that's not unusual.

Thanks to you and Mark for helping out.

Pete
lcSQL Software <http://www.lcsql.com>



On Wed, Jun 27, 2012 at 2:35 PM, Paul Hibbert <lc at pbh.on-rev.com> wrote:

> Maybe I am misunderstanding something, but if you are applying the
> destroyStack right before the delete stack you are not changing anything
> permanently, unless you save the stack before deleting it of course.
>
> Called from "Stack A":
>
>   set the destroyStack of stack "Stack B" to true
>   delete stack "Stack B"
>
> This works for me ("Stack B" disappears from the app browser) and when I
> re-open "Stack B" the destroyStack is still as it was, i.e. false
>
> Paul
>
>
> On 2012-06-27, at 12:39 PM, Peter Haworth wrote:
>
> > HI Paul,
> > Unfortunately, I can't use that method.  I'm doing this as part of a tool
> > I'll be announcing soon so it will be accessing other peoples' stacks
> and I
> > don't think they'd be happy if I changed the destroyStack property on
> them!
> > Pete
> > lcSQL Software <http://www.lcsql.com>
> >
> >
> >
> > On Wed, Jun 27, 2012 at 12:02 PM, Paul Hibbert <lc at pbh.on-rev.com>
> wrote:
> >
> >> Peter,
> >>
> >> Have you tried setting the destroyStack to true before deleting it?
> >>
> >> set the destroyStack of myStack to true
> >>
> >> Quote from the LC Dictionary;
> >> "destroyStack Summary:
> >> Specifies whether a stack is purged from memory when it's closed, or
> >> whether it remains in memory.
> >>
> >> Value:
> >> The destroyStack of a stack is true or false.
> >>
> >> By default, the destroyStack property of newly created stacks is set to
> >> false."
> >>
> > _______________________________________________
> > 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