I try to create a static variable initialized by some control.
Let's create PopupMenu
control
SomeText = "SomeText";
PopupMenu[Dynamic[PS], {0 -> "Prefix", 1 -> "Suffix"}]
Then, on the base of the control, a variable StringForLater
is initialized
StringForLater = Dynamic[If[PS == 0, StringJoin["Prefix", SomeText], StringJoin[SomeText, "Suffix"]]]
Later StringForLater
performs as a dynamical variable, but I need another behavior: after selecting an item in PopupMenu
make StringForLater
static, not dynamic.