Save on Quit?

Richard Gaskin ambassador at fourthworld.com
Sat Mar 30 11:22:12 EDT 2013


Richmond wrote:

 > I wonder if anybody can tell me why this works as a stack, but
 > doesn't as a standalone:
 >
 > on mouseUp
 >     ---
 >     set the lockScreen to true
 >     delete file "BacktUp.rtf"
 >     if fld "DoneText" of card "Entry" of stack "RWord" is not empty then
 >        set the vis of img "SAVE" to true
 >        set the lockScreen to true
 >        put the RTFtext of fld "DoneText" of card "Entry" of stack
 > "RWord" into url("file:" & BacktUp & ".rtf")
 >        set the lockScreen to false
 >        set the vis of img "SAVE" to false
 >     end if
 >     ---
 >     Quit
 >     ---
 > end mouseUp


What do you see when you run it after adding this line immediately below 
the one that writes the file?:

   answer "RESULT: " & the result && "SYSERR: "& sysError()


--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys




More information about the use-livecode mailing list