The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: can't get InputField to work inside a While command
Replies: 3   Last Post: May 18, 2013 2:38 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Dushan Mitrovich

Posts: 22
Registered: 5/7/11
can't get InputField to work inside a While command
Posted: May 14, 2013 3:14 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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


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

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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.