The following segment of code is part of a project I am making and therefore I cannot show all the code. I hope the one below is enough.
The input is
Panel[DynamicModule[var, InputField[Dynamic[var], String]]]
while the output is
which in thid case displays DynamicModule[var,] that is not wanted. How would I fix this? I want to add that I want to keep the same functions used above.
Also, how would I put text next to the input field? Thank you.
DynamicModule[{var}, ...]
instead. $\endgroup$DynamicModule
you will need an assignment inDynamic[globVar = var]
$\endgroup$Dynamic[var, (var = globVar = #) &]
works, but I don't understand why theDynamic[globVar = var]
doesn't :/ $\endgroup$Set
is notFlat
and(x = y) = 5
is not the same asx = y = 5
$\endgroup$