Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 669

Getting Started with LiveCode - Complete Beginners • Prevent a stack from opening

$
0
0
I have two stacks. Stack one writes file "blah" when a certain condition is met"

All of this works fine:

open file 'blah' for write
write "123" to file "blah"
close file "blah"
go stack "two"


In my openstack handler in stack"two"I have this:

On openstack
if there is a file "blah" then
pass openstack
else
close this stack
end openstack

all of this works great in the dev environment. When I try to open stack"two" it tries to open and then it shuts down immediately.
When I build it, I can just open stack two without going through stack one. which is exactly the thing I am trying to prevent.
any ideas?

Statistics: Posted by oldummy — Thu Jul 11, 2024 1:22 pm



Viewing all articles
Browse latest Browse all 669

Trending Articles