Modal dialog not modal... any hints?

Richard Gaskin ambassador at fourthworld.com
Wed Jan 20 10:11:15 EST 2010


Tereza Snyder wrote:

> On Jan 20, 2010, at 8:22 AM, Robert Brenstein wrote:
>
>> Have you tried the alternative syntax
>>
>> go stack "AskYesOrNo" as modal
>
>
> Yes. Same result. Poop.

Ah - you're missing a poop handler.  Just put this in your dialog stack:

on poop
   do "What I want you to do"
   pass poop
end poop

Passing poop is important, because otherwise it can clog the system and 
take up unnecessary resources.


But seriously, tedious as it is it may be time to try this the other way 
around:

First, see if you can replicate this in isolation.  That is, make a 
simple stack with nothing but a Cancel button so you can close it, and 
see if your modal command works there.

If it does, try adding in additional script from the stack that fails 
until this new one fails too.

If this simple dialog fails, then at least you know the problem is with 
a script elsewhere in your setup.

Alternatively, you can comment out everything in your existing stack and 
uncomment a few lines at a time until the error shows itself again.

It may also be useful to review and libraries, frontScripts, or 
backScripts which may be active to see if you have anything there which 
may be causing this.

--
  Richard Gaskin
  Fourth World
  Rev training and consulting: http://www.fourthworld.com
  Webzine for Rev developers: http://www.revjournal.com
  revJournal blog: http://revjournal.com/blog.irv



More information about the use-livecode mailing list