Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'transfer the control after choices' topicStudent Support Forum > General > "transfer the control after choices"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Michael
12/19/12 10:06pm

In Response To 'Re: Re: transfer the control after choices'
---------
>I basically want to transfer the execution to completely
>different place

I'm not sure what you mean. The cases in a Switch are, to me, "different places," that is, not in the Button action. You can always substitute a function call for "Plan A" etc., if you want the code that is to be executed located in a separate cell.

You might look at Input[..], ChoiceDialog[..], etc. for ways to make execution wait on input. If these can't be used to do what you want, then I'm afraid I don't know what to suggest. Is there a way you could post some (pseudo) code that illustrates the sort of flow of control you're seeking? That might help someone find an answer.

URL: ,

Subject (listing for 'transfer the control after choices')
Author Date Posted
transfer the control after choices PhysicsGuy 12/17/12 1:51pm
Re: transfer the control after choices Michael 12/19/12 06:33am
Re: Re: transfer the control after choices PhysicsGuy 12/19/12 2:33pm
Re: Re: Re: transfer the control after choices Michael 12/19/12 10:06pm
Re: Re: Re: transfer the control after choices Bill Simpson 12/20/12 2:58pm
Re: Re: Re: Re: transfer the control after choi... PhysicsGuy 01/08/13 9:20pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic