How to Re-run a project in the IDE?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rjenkinsgb
Posts: 12
Joined: Tue Feb 17, 2015 1:30 pm

How to Re-run a project in the IDE?

Post by rjenkinsgb » Thu May 21, 2015 12:59 pm

Hi,

is there an option in the IDE to fully re-start the project - ie. so it runs through it's initialisation and splash screen etc?

Most IDE debuggers have an obvious way of doing this, but I can't find it in Livecode, I'm having to quit or close/remove from memory and reload to restart things.

--- It may well be that I've looked past it every time and not realised what it was, but I don't think that's the case..

RJ.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: How to Re-run a project in the IDE?

Post by jacque » Thu May 21, 2015 5:36 pm

There's no automatic way to do it. If the initialization requires a whole series of startup messages coming from the engine then reopening it is probably the easiest way. I usually have a single handler that does all the initialization and I just call that from the message box. Alternately you could call each engine message serially from the message box.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: How to Re-run a project in the IDE?

Post by MaxV » Mon May 25, 2015 2:28 pm

I suggest this, on another stack:

########CODE#######
on purge mystack
set the destroyStack of myStack to true
set the long name of stack mystack into temp
put the last word of temp into tPath
close myStack
go to stack URL ("binfile:" & tPath)
end purge
#####END OF CODE#####
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply