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: [mg67749] Re: Beginner--Simplest question: How to control some values in Input dialog box
  • From: dh <dh at metrohm.ch>
  • Date: Thu, 6 Jul 2006 06:53:22 -0400 (EDT)
  • References: <e8fuj0$qm0$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

HI,
e.g. you coul try:
inp =.;
While[! (IntegerQ[inp] && inp > 0),
   inp = Input["Give an positive integer value to CN"];]

Daniel

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: Beginner--Simplest question: How to control some values in Input dialog box
  • Next by Date: Re: Manipulate list elements
  • Previous by thread: Re: 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