Beginner Question

Roger Eller roger.e.eller at sealedair.com
Tue May 7 09:46:06 CDT 2013


You can also protect yourself from the accidental quit.

   if the environment is "development" then
      answer "My Standalone would quit now, but in the IDE it keeps
running."
   else
      quit
   end if

~Roger

--
Roger Eller
Graphics Systems Analyst
Sealed Air Corporation
864-967-1625  Office
864-908-0337  Cell



On Tue, May 7, 2013 at 8:07 AM, Graham Samuel <livfoss at mac.com> wrote:

> There's another method of doing this, which is to arrange for the
> initialisation code of your app to be in a 'startup' handler in the first
> card of the mainstack. 'Startup' is not sent when you load an LC stack from
> the IDE, so the issue doesn't arise. If you want to initialise after the
> load, just do
>
> send "startup" to card "MyStartCard" of stack "MyMainStack"
>
> from the message box.
>
> Graham
>
> On 7 May 2013, at 13:20, Roger Eller wrote:
>
> > Click on the button labeled "Messages" in the toolbar. That will suspend
> > messages from being sent from your scripts.
> >
> > ~Roger
> > On May 7, 2013 7:12 AM, "Graham Pearson" <gspearson at gmail.com> wrote:
> >
> >> I am working on converting one of my Adobe Air Applications to Livecode
> >> and I have made a mistake in my script which the application quits. How
> >> can I turn off the option to automatically run the application upon
> >> opening the project into the IDE so that I can fix my misplaced quit
> >> command.
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> use-livecode mailing list
> >> use-livecode at lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


More information about the use-livecode mailing list