What Env Variable set when saving standalone?

Mark Wieder ahsoftware at sonic.net
Thu Jan 25 19:28:20 EST 2018

On 01/25/2018 03:31 PM, Bob Sneidar via use-livecode wrote:
> Trouble is I DO want to open the login stack modally in development, because it pulls setup information for each user from the Login database, such as custom settings (like local file paths, recent customers list, access level etc). The only time I do NOT want to open that stack is when I am saving as standalone.
> It's not killing me to set the stack mode to top level each time, it's just irritating.

Heretical idea:

Put a 'Cancel' button on the modal stack.
If it's clicked, toplevel the stack and move on.
Only make the button visible if in development mode.

on preOpenStack
   if the environment is "development" then
     show button 'btnCancel'
     hide button 'btnCancel'
   end if
end preOpenStack

-- in the button itself
on mouseUp
   toplevel this stack
end mouseUp

  Mark Wieder
  ahsoftware at gmail.com

More information about the use-livecode mailing list