Can't delete option question...
Ken Ray
kray at sonsothunder.com
Sun Feb 1 00:23:42 EST 2004
Most likely you're trying to delete the stack that is currently running.
The message box can do it because it is a different stack. You could try
to:
send "delete stack" && quote & vgName & quote to me in 20 milliseconds
which would give enough time for the rest of the script to run before
the message hit.
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
> Doug Lerner
> Sent: Saturday, January 31, 2004 10:52 PM
> To: How to use Revolution
> Subject: Can't delete option question...
>
>
> A certain stack is closed and I want to delete it in a
> script. My code looks
> like:
>
> if vgName is not among the lines of the openStacks then
> if exists(stack vgName) then
> delete stack vgName
> end if
> end if
>
> This causes a "can't delete object" error when run at the
> delete stack line.
>
> But... I can delete that stack in the message box.
>
> Any ideas why this would be?
>
> Thanks,
>
> doug
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-> revolution
>
More information about the use-livecode
mailing list