Re: Re: How to find which variable caused the trigger in Manipulate[]
- To: mathgroup at smc.vnet.net
- Subject: [mg103906] Re: [mg103821] Re: How to find which variable caused the trigger in Manipulate[]
- From: "Nasser M. Abbasi" <nma at 12000.org>
- Date: Mon, 12 Oct 2009 06:36:33 -0400 (EDT)
- References: <20091011163315.063702@jfultz2winlap>
- Reply-to: "Nasser M. Abbasi" <nma at 12000.org>
"This looks to me like a bug, but one that is very simple to work around. Use Rule instead of RuleDelayed for the Refresh. I.e., Manipulate[ Row[{Dynamic[Refresh[r = process["x "]; "", TrackedSymbols -> {x}]], Dynamic[Refresh[r = process["y "]; "", TrackedSymbols -> {y}]], Dynamic[Refresh[Text[r], TrackedSymbols -> {x, y}]]}], {x, 0, 1}, {y, 0, 1}, {r, "", "", ControlType -> None}, Initialization :> (process[s_String] := Module[{}, Text[StringJoin[s, DateString[]]]])] After a bit of experimentation, my advice is to completely avoid RuleDelayed with the TrackedSymbols option. Sincerely, John Fultz" Ok John. fyi the documenation (version 7) for TrackedSymbols, shows :> in the examples and description and not -> I am assuming that when this bug is fixed in a future release one can still use :> as the documentation says. Thanks again for all your help. --Nasser