Modal dialogue "it"
Andrew
alw918 at earthlink.net
Fri Oct 8 22:08:59 EDT 2004
Hi, I have a strange problem.
I'm doing a very simple procedure where my main stack calls a substack
as modal. Then, when you push "OK" in the substack, the substack
closes and the contents of its field "response" is put into it.
Then, after the modal stack is closed, more code is supposed to run,
but it just stops there, and it seems as though "it" was erased.
My mainstack says this:
on keydown whichkey
put whichkey into field "response" of stack "dialog"
modal "dialog"
answer it
if not it contains "cancel" then send continueStuff to this card
end keydown
I put "answer it" there just as a test (so that Rev would show me what
was put into "it" after the modal dialog stack closes), and it just
answers with a blank window.
The "OK" btn of the modal stack says this:
on mouseUp
global recentvar
put cd fld response into it
put it into recentvar
close stack "dialog"
end mouseUp
the global recentvar is there because later on, in continueStuff I need
to access this value.
Thanks for any assistance!
-Andrew
More information about the use-livecode
mailing list