MathGroup Archive 2006

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

Search the Archive

Re: Beginner--Simplest question: How to control some values in Input dialog box

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67753] Re: [mg67715] Beginner--Simplest question: How to control some values in Input dialog box
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 6 Jul 2006 06:53:41 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

Clear[CN];
While[! IntegerQ[CN] || CN <= 0,
  CN = Input["Enter a positive integer value for CN"]]


Bob Hanlon

---- abdou.oumaima at hotmail.com wrote: 
> Hi mathematica users,
> 
> In the begining of my program, I've to initialize some parametres. I would like to do some control on them.
> 
> I put:
> 
> CN= Input["Give an positive integer value to CN"];
> c= Input["Give a positive real value to c less than 0.9"]
> 
> How to control the values CN and c so that they verify my conditions in the message box?
> 
> Any help please.
> 
> Thank you for all of you
> 
> Link to the forum page for this post:
> http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName=Special:Forum_ViewTopic&pid=11670#p11670
> Posted through http://www.mathematica-users.org [[postId=11670]]
> 
> 


  • Prev by Date: Re: Manipulate list elements
  • Next by Date: Re: Beginner--Simplest question: How to control some values in Input dialog box
  • Previous by thread: Beginner--Simplest question: How to control some values in Input dialog box
  • Next by thread: Re: Beginner--Simplest question: How to control some values in Input dialog box