answer not working in launched stacks - why?

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
giansuana
Posts: 16
Joined: Sat Mar 19, 2011 7:11 am

answer not working in launched stacks - why?

Post by giansuana » Tue Mar 26, 2013 7:54 pm

I have two mainstacks: the first one is used as a launcher for the second one. Problem is, that the function "answer" is not working anymore (i.e. nothing happens, script has no effect) within the second stack, if it is launched by the first one! But as soon as I start the second stack directly, "answer" is working as expected.
Why is that? And how can I achieve a properly working answer-function in the second stack if launched by the first one?
Best, Gian-Reto.

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: answer not working in launched stacks - why?

Post by magice » Tue Mar 26, 2013 8:59 pm

What message is being sent, that initiates the answer command?

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: answer not working in launched stacks - why?

Post by Klaus » Wed Mar 27, 2013 11:22 am

Hi Gian-Reto,

couple of questions:
1. is the "launcher" stack the one you build a standalone from? I guess yes.
2. do you close that "launcher" stack immediately after you opend any other stack?
3. is the "destroystack" property of the "launcher" stack checked?
4. MOST IMPORTANT: Did you check "Ask Dialog" and "Answer Dialog" in the standalone builder settings? :D


Best

Klaus

giansuana
Posts: 16
Joined: Sat Mar 19, 2011 7:11 am

Re: answer not working in launched stacks - why?

Post by giansuana » Wed Mar 27, 2013 1:33 pm

Thank you a lot for your interest in my problem!
Klaus, your important Nr. 4 was the solution: beginner as I am, I built the standalone launcher with default automatic option on. After enabling the answer dialog manually my problem was solved. Great! :D
Am I right in assuming now, that my problem occurred, because my launcher did not contain a answer function, but just the second stack? Therefore, the standalone builder was not able to include the needed inclusions automatically, right?
Best, Gian-Reto.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: answer not working in launched stacks - why?

Post by Klaus » Wed Mar 27, 2013 1:49 pm

Hi Gian-Reto,

glad I could help!

Yes, your are right:
The standalone builder copies the "Ask dialog" and "Answer dialog" stack as SUBSTACKS to the stack
that will turn into the standalone. If they are missing "ask/answer whatever..." will not work.


Best

Klaus

Post Reply