How do I restart a Mainstack?

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
RichardN
Posts: 2
Joined: Mon Jan 25, 2010 12:40 pm

How do I restart a Mainstack?

Post by RichardN » Mon Jan 25, 2010 12:58 pm

Hi all, I'm new to this language (although not programming) so please excuse what is probably a really dumb question (and please excuse me if I use the wrong terminology)...

I'm using Rev Media and cannot see how, short of closing the whole stack and loading it again, I restart the main stack so that I can check my PreOpenStack routines. I can do this with a sub stack easily enough but cannot seem to find how to do it with the main stack. When I set a breakpoint on the pre open code it never seems to get to it even when I reload the stack.

Like I say, it's probably very simple but some help would be appreciated.

Richard

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Re: How do I restart a Mainstack?

Post by bn » Mon Jan 25, 2010 1:43 pm

Hi Richard,
welcme to the forum.

In the Development Menu you have the option to Suppress Messages. Check that. Your Main Stack and your substacks are open. Type into the Message Box
go stack "nameOfYourMainsSTack".
Alternatively you have your Stack/Substacks closed. Check Suppress Messages and start your Main Stack.
This should do the trick.
Or again with the Suppress Messages checked and your stack/substack open go to the application browser and double click your main stack.

If you want to see the sequence of messages sent you can turn on the message watcher.

regards
Bernd

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

Re: How do I restart a Mainstack?

Post by BvG » Mon Jan 25, 2010 3:01 pm

you can also issue "fake" messages via the message box (the third button of the iconbar at the top opens it). So with your main stack the topmost, you just enter "preopenstack" in the message box and hit enter.
Various teststacks and stuff:
http://bjoernke.com

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

RichardN
Posts: 2
Joined: Mon Jan 25, 2010 12:40 pm

Re: How do I restart a Mainstack?

Post by RichardN » Mon Jan 25, 2010 7:57 pm

Thanks guys, I knew it would be something simple.

Richard

Post Reply