Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Re: Default value for Dynamic InputField

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83254] Re: [mg83209] Default value for Dynamic InputField
  • From: Syd Geraghty <sydgeraghty at mac.com>
  • Date: Fri, 16 Nov 2007 05:28:00 -0500 (EST)
  • References: <200711151034.FAA08887@smc.vnet.net>

Robert,

The colon you used is syntactically incorrect, try

InputField[Dynamic[R0, Initialization -> (R0 = 123)]]

and you get what I think you want.

HTH


Syd

Syd Geraghty B.Sc., M.Sc.
sydgeraghty at mac.com
San Jose, CA

My System

Mathematic 6.0.1 for Mac OS X x86 (32 - bit) (June 19, 2007)  License  
L2983-5890
MacOS X V 10.4 .10
MacBook Pro 2.33 Ghz Intel Core 2 Duo  2GB RAM

On Nov 15, 2007, at 2:34 AM, robert prince-wright wrote:

> Can someone tell me how to set default values for Dynamic input  
> fields:  I have tried Initialization with no success.
>
> Here is the generic code:
>
>  InputField[ Dynamic[ R0] ]
>
>  The intent is to assign a default value to the symbol R0 so that  
> gets assigned each time the notebook is opened. The code below does  
> not work for me!
>
>  InputField[ Dynamic[ R0, Initialization:-> (R0=123)] ]
>
>
>  Thanks
> Robert
>



  • Prev by Date: Get list of function variables?
  • Next by Date: Re: Multiple Constants
  • Previous by thread: Default value for Dynamic InputField
  • Next by thread: Re: Default value for Dynamic InputField