MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How do I create a cell or "Dialog Box" that simply states a control loop status?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg9879] Re: [mg9860] How do I create a cell or "Dialog Box" that simply states a control loop status?
  • From: Allan Hayes <hay at haystack.demon.co.uk>
  • Date: Sun, 30 Nov 1997 00:39:29 -0500
  • References: <199711290510.AAA16855@smc.vnet.net.>
  • Sender: owner-wri-mathgroup at wolfram.com

jwelter at mindspring.com wrote:
> 
> I have a "For" loop that sometimes takes 30 min. to complete.
> 
> How do I create a cell whose contents refreshes itself with the current
> value of the index variable?

Make a text  cell with tag indexvalue (menu Find> Add/Remove Cell Tags
or use the following cell expression)

Cell["", "Input"]

Modify your For loop as follows:

NotebookLocate["indexvalue"];	
SelectionMove[ EvaluationNotebook,All,CellContents];

For[i=1,i<100,NotebookWrite[EvaluationNotebook,i,All];i++]

-- 
Allan Hayes
Mathematica Training and Consulting
Leicester, UK
hay at haystack.demon.co.uk
http://www.haystack.demon.co.uk
voice: +44 (0)116 271 4198
fax: +44 (0)116 271 4198


  • Prev by Date: Re: Trivial integral freezes 3.0
  • Next by Date: Re: Problem trying to link to a remote kernel. *sigh*
  • Previous by thread: How do I create a cell or "Dialog Box" that simply states a control loop status?
  • Next by thread: Re: Re: How do I create a cell or "Dialog Box" that simply states a control loop status?