On 14/05/2013 08:14, Dushan Mitrovich wrote:> I need to be able to input
You need to realise the InputField construction generates a box only
when it is output to a notebook (analogous to a Graphics object) - it
doesn't evaluate to anything other than itself. This code will create a
list of InputField objects, each attached to a different element of a
list, and the result will be returned to your notebook as a column of
boxes so you can change the various components and observe the result by
evaluating the variable data.
nin=7;
data=ConstantArray[0,nin];
Column[Table[With[{k=k},InputField[Dynamic[data[[k]]]]],{k,1,7}]]
This may, or may not be what you really want. You may want to place the
InputField objects in a separate, pop-up notebook with a close button to
close the window before the program continues to execute. This is
possible using CreateDialog.
David Bailey
http://www.dbaileyconsultancy.co.uk