Group Abstract Group Abstract

Message Boards Message Boards

0
|
6.3K Views
|
4 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Dynamical matrix growth

Posted 11 years ago

I am trying to create a list that grows as new elements are entered one by one in the InputField. Tried this code:

InputField[Dynamic[ss]]
T = {};

Dynamic[AppendTo[T, ss], ContinuousAction -> False]

But ended up in infinite loop. Any ideas?

Thanks.

POSTED BY: Al Guy
4 Replies
Posted 11 years ago

Thanks.

POSTED BY: Al Guy
POSTED BY: Nasser M. Abbasi
Posted 11 years ago

Thanks, Nasser.

Why doesn't rr being updated here? It just returns rr:

dd = Null; 
InputField[Dynamic[rr, {(dd = #) & }]]

Dynamic[dd]
Dynamic[rr]
POSTED BY: Al Guy

how about

T = {};
ss = Null;
Grid[{{InputField[Dynamic[ss, {ss = #; AppendTo[T, ss] } &]]}, {Dynamic[T]}}, Frame -> All]

enter image description here

POSTED BY: Nasser M. Abbasi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard