Setting a dirty flag for a file
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu Jul 21 15:13:14 EDT 2011
Hi Charles,
Isn't it sufficient to simply no close the file until you're done? You might need to keep records of open files, but if you do this properly, you could open them once and close them all when your app closes or if the user closes some window.
on openSomeFIle
open file gFile
// do stuff
end openSomeFile
on closeStack
close file gFile
end coseStack
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce
On 21 jul 2011, at 20:45, Charles Szasz wrote:
> I am using Rev. 4.0. How do you set a "dirty flag" for a data file that that has been saved but still open in your app stack? My app creates a data file that saves the contents of 16 fields. I have code to show an initial save dialog when the user makes changes. I want to use a dirty flag to show another save box only when closing the file if the user makes subsequent changes in the data file. Otherwise when the user closes the data file without additional change no save dialog will be presented.
>
> Thanks for your time!
>
> Charles Szasz
> cszasz at mac.com
>
More information about the use-livecode
mailing list