exit preOpenCard

Dave Cragg dcragg at lacscentre.co.uk
Mon Feb 2 18:42:07 EST 2004


At 4:06 pm -0700 2/2/04, Chris Sheffield wrote:
>Here's my problem.  I'm checking for a certain value in a preOpenCard
>handler.  If the value is false, I want to exit that preOpenCard and go to
>the next card.  Problem is if I have
>
>	go next cd
>	exit preOpenCard
>
>the preOpenCard of the next card exits, not the first one.  Hopefully this
>makes sense.  Is there anyway I can exit the first preOpenCard and go to the
>next card creating a problem like this?  I tried putting in a line after go
>next cd that is "wait 500 millisecs with messages", but that only works
>sometimes.  Thanks.

Something like this, perhaps: (untested)

     send "gonext" to me in 50 milliseconds
     exit preOpenCard

   on gonext
      go next card
   end gonext

Cheers
Dave


More information about the use-livecode mailing list