Saving project files in livecode

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
xfrios
Posts: 24
Joined: Wed May 25, 2011 11:54 pm

Saving project files in livecode

Post by xfrios » Tue Jun 07, 2011 11:50 pm

Several times, I have rendered livecode unresponsive due to infinite or very long operations - entirely my fault.

I ended the process and lost work on a couple of occasions. I'm not sure I understand the saving part of things :shock:

When I File -> Save in the Code Editor does that save changes in all source files I have open or just the current tab?
When I File -> Save in the main menu does that save all files including the UI design?

Is there an autosave or background save option I can configure?

Also, what is the function of the 'apply' button in the code editor - does that have any impact on 'save' ?

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Saving project files in livecode

Post by BvG » Wed Jun 08, 2011 12:50 am

all things in livecode are related to stacks. if you save, you save the current stack file. that means the current stack, and it's substacks, if it has any, or alternatively it's mainstack and the other substacks that mainstack might have. So when you save a script, you're actually again saving the stack that script belongs to, be it a button on a card of that stack or whatever.

Apply never saves anything
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: Saving project files in livecode

Post by SparkOut » Wed Jun 08, 2011 11:56 am

Unrelated to the saving issue but if you are sometimes forced to end the application process to escape a frozen environment, a typical cause of that is to have a handler with a repeat loop blocking the responsiveness. Putting a line "wait 0 milliseconds with messages" within the handler (say just before the end repeat) lets the engine have just enough breathing space to stop the repeat handler hogging it and perform some housekeeping, etc like checking keypresses - so you may find an escape or ctrl/cmd + c will halt a runaway handler.

xfrios
Posts: 24
Joined: Wed May 25, 2011 11:54 pm

Re: Saving project files in livecode

Post by xfrios » Wed Jun 08, 2011 12:56 pm

That's a great idea SparkOut, I'll be sure to try it next time I'm experimenting with an iterative process.

Post Reply