suspend but no resume?

Rob Cozens rcozens at pon.net
Tue Oct 29 09:51:01 EST 2002


>It seems that calling the answer dialog generates a suspendStack, 
>but no resumeStack is sent when the dialog is closed.  Doesn't seem 
>right...

Hi Doug,

I reported this to the Improve Rev List last August:

>I've done more testing with a simple stack with one field named
>"Status" and one button.  The stack script contains:
>
>on suspendStack
>    put "I'm suspended" into field "Status"
>end suspendStack
>
>on resumeStack
>    put "I'm resumed" into field "Status"
>end resumeStack
>
>on preopenStack
>    put empty into field "Status"
>end preopenStack
>
>The button script contains:
>
>on mouseUp
>    put empty into field "Status"
>    ask "Got something for me?"
>    wait 3 seconds
>    put empty into field "Status"
>    ask file "Got a file?"
>    wait 3 seconds
>    put empty into field "Status"
>    answer "What's the question?"
>    wait 3 seconds
>    put empty into field "Status"
>    answer file "What's the file?"
>    wait 3 seconds
>    put empty into field "Status"
>    ask password "What's the word?"
>    wait 3 seconds
>    put empty into field "Status"
>end mouseUp
>
>Using this test I am finding that ask, answer, & ask password dialogs
>suspend the stack but fail to send resumeStack when closing.  Neither
>the ask file nor the answer file dialogs suspends nor resumes the
>main stack.


-- 

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)



More information about the use-livecode mailing list