clear InputField
- To: mathgroup at smc.vnet.net
- Subject: [mg84094] clear InputField
- From: obott0 at gmail.com
- Date: Mon, 10 Dec 2007 04:36:18 -0500 (EST)
What's the best way to assign the value of InputField to a variable and then clear its contents? This seems to work: InputField[Dynamic[y, { (y = #) &, (z = y; y = "";) & }], Number] Dynamic[z] But I'm wondering if there's a way to just tell InputField to clear itself without having to use a dummy variable. Also the fact that I have to tell InputField to treat the string y as a number seems strange. Thanks for the help!