How do I turn off autostart?

Cubist at aol.com Cubist at aol.com
Sun Mar 20 11:15:27 EST 2005


sez len-morgan at crcom.net:
>It seems that when ever I load a stack into the IDE to work on it, it 
>runs the preOpenStack handler but I would like to turn off that feature
>while I'm developing (so I don't accidently code an infinite loop in the
>handler).  It would be ok if going from edit to run had this behavior.
>Is there possibly something like MS Access has where if you hold down 
>the shift key while opening a database it won't run the autoexec macro?
   I don't think there's anything like that built into Rev, but you can do it 
yourself:

on preOpenStack
  if the environment = "development" then exit preOpenStack
  ...
  YourNormalPreOpenStackStuffHere
  ...
end preOpenStack

   The "if" could also be "if the skiftKey is down" or whatever other 
combination of modifier keys, of course.
   Hope this helps...


More information about the use-livecode mailing list