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
Bill Simpson
12/20/12 2:58pm

In Response To 'Re: Re: transfer the control after choices'
---------
I suspect for some or even many of your questions there may be no acceptable answer.

Whether you are using APL or Algol, F# or FORTRAN, each language tends to support a particular programming style and set of features. Trying to get one to behave like another is often not a satisfying process. I've tried that myself a few times, always without success.

I doubt this will be satisfactory, but for your button and goto question someone on another forum described a method allowing a button in one notebook to evaluate (run) a completely separate notebook.

Button["run file 1", NotebookEvaluate["/../file1.nb"], Method->"Queued"]

If that isn't unacceptable then perhaps you could adapt this to your need for implementing arbitrary flow of control in your code.

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