Or:

local sFIrstRun = "true"

on preOpenStack
    if the owner of the target is me then
        if the environment is "development" and sFIrstRun then
             startup
        end if
        put false into sFIrstRun
    end if
end preOpenStack

Sent from my iPhone

> On 9 Jun 2016, at 6:40 AM, Mark Wieder <mwie...@ahsoftware.net> wrote:
> 
> Paul Dupuis <paul@...> writes:
> 
>> 
>> In LiveCode 6.7.11 and 8.1.0rc1 the startup message is send to your main
>> stack when the mainstack is built as a standalone. However, if you open
>> your stack in the IDE, the startup message is never received
> 
> As mentioned, this is by design, and it's quite a useful feature. I put code 
> that
> I want to run *only* in a standalone environment in the startup handler, and
> initialization code that is common to both a standalone and development
> environment in the startXXX handlers.
> 
> That said, if you really want to test the startup code in the IDE you can 
> always
> execute directly, either from the message box or from a test control:
> 
> command testStartup
>  dispatch "startup" to card 1
> end testStartup
> 
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to