Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: Q: About PAUSING in V2.2
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Sergio Rojas

Posts: 40
Registered: 12/7/04
Q: About PAUSING in V2.2
Posted: Oct 25, 1996 10:21 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


Hello Folks:

A simplified version of a mathematica program I am using, is as follow:

testing = "n" ;
While[ testing != "y" ,
Plot[x,{x,0,1}];
Print["Are You happy ?"] ;
testing = InputString["To continue, enter: y "]
]


After reaching the sentence: testing = InputString["To continue, enter: y "]
the program wait around 30 seconds to receive an answer. If no answer
is given between 30 seconds, the While loop is ended and the program
continues with the next sentence. How this can be avoided? How to keep
Mathematica waiting until an answer is given?

The working enviroment is Mathematica 2.2 under OSF/1 in a DEC(alpha)
workstation.

Cordially,

Sergio Rojas

e-mail: sergio@scisun.sci.ccny.cuny.edu








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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.