At 6:55 PM +0900 12/11/1999, Nicolas R Cueto wrote:

>When my standalone was a stack running with MC in the background there
>was no problem. Now, however, any new user data (names, passwords,
>grades, etc.) which I was stashing in a hidden field (rather than in a
>text file, which anyone can access) is not being saved as part of the
>stack/standalone, even though I scripted an "on closeStack; save this
>stack; end closeStack".

Hi Nicolas

You can't save data to an executable file. (In theory, you can on a 
Mac, but I don't know if Metacard allows it or not.) To save data in 
a Metacard stack while running with a standalone, you'll need to keep 
the stack separate from the standalone. One way is to build the 
standalone from a stack that simply opens the external stack in a 
preopenStack handler.

on preoOpenstack
   hide this stack
   toplevel stack <mainStackname>
end preOpenStack

Be sure to call "quit" in the external stack when you close it or the 
invisible standalone will still be running.

on closeStack
   save this stack
   quit
end closeStack

Cheers
Dave Cragg

Reply via email to