Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14493

can't get InputField to work inside a While command

From Dushan Mitrovich <dushanm@nnips.net>
Newsgroups comp.soft-sys.math.mathematica
Subject can't get InputField to work inside a While command
Date 2013-05-14 07:14 +0000
Message-ID <kmso9j$h67$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


I need to be able to input parameters for an a-priori indeterminate 
number of cases.  The way I've been trying to do this is by using a 
While statement containing InputFields, one of which asks if there are 
to be more cases to deal with.  If not, the previously True logical 
'test' for While is reset to False.

But apparently InputField is not even recognized as part of the 'body' 
inside a While.  By itself InputField works as expected, but not in this 
reduced example:

   cntr = 0;
   While[cntr<3, cntr++; InputField[xx]]

which only produces

   1
   2
   3

What am I missing?  Or am I going about this the wrong way?

- Dushan
   [ reverse the middle word of address to reply ]

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

can't get InputField to work inside a While command Dushan Mitrovich <dushanm@nnips.net> - 2013-05-14 07:14 +0000
  Re: can't get InputField to work inside a While command David Bailey <dave@removedbailey.co.uk> - 2013-05-15 06:53 +0000
    Re: can't get InputField to work inside a While command Dushan Mitrovich <dushanm@nnips.net> - 2013-05-17 08:34 +0000
      Re: can't get InputField to work inside a While command David Bailey <dave@removedbailey.co.uk> - 2013-05-18 06:38 +0000

csiph-web