Message Boards Message Boards

0
|
1824 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Controlling double evaluation of DynamicModule

Posted 9 years ago

Is there a way to write some sort of "control" so that when one runs a package containing dynamic module (say the one below by <<package.wl), closes the notebook and then reopens it and runs again (by shift+enter on <<package.wl), the values that were entered in previous session are kept the same? So basically I want to prevent the erasing of values by double run.

BeginPackage["test`"]

Begin["`Private`"]

Print@DynamicModule[{x,d},x=Array[d,2];Row[{InputField[Dynamic[x]], Dynamic[x^2]}]]

End[]

EndPackage[]
POSTED BY: Al Guy
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract