Code: Select all
save stack "Database" as "/Volumes/Data/Database.livecode"
Code: Select all
save this stack
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
save stack "Database" as "/Volumes/Data/Database.livecode"
Code: Select all
save this stack
Note: A stack file directly attached to a standalone application cannot have changes saved
to it. This stack is bound directly to the executable file that runs. The OS locks an
executable file while it is running. If you want to save changes in your standalone
application, split your stack up until multiple files. A common technique is to create a
"splash screen" stack that contains a welcome screen and then loads the stacks that make
up the rest of your application. These stacks are referenced as stackFiles on this pane in
the standalone settings screen. It is thus possible to automatically update these
component stacks, or to save changes to them. You may also want to consider creating
preference files in the appropriate location on your end user's system (see the
specialFolderPath function and query/setRegistry functions for more information).
Code: Select all
on closeStackRequest
save this stack
pass closeStackRequest
end closeStackRequest
Code: Select all
on preOpenCard
get specialFolderPath("documents") & "/" & "yourWorkingStack" & ".livecode"
go stack it
end preOpenCard
or simply:
on opencard
go stack "yourWorkingStack"
close stack "yourSplashStack"
end opencard