Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Resetting certain variables with reset button but not all the variables

Return to the EJS Modeling forum
Login to post to this thread

Resetting certain variables with reset button but not all the variables - May 8, 2013 at 10:16AM
fergal wallace
3 Posts

I'm trying to reset some of my variables with the rest button but not all the variables. Basically what i want to do is choose which variables are reset when the reset button is clicked.
_reset()    is just resetting everything. I want to reset just three variables.
Seems like such an easy thing to do in my head but i've just had trouble with it.
Any help much appreciated!!


Current Replies - View all
Re: Resetting certain var...   (Francisco Esquembre - May 08 2013 at 6:16PM)
Re: Re: Resetting certain...   (fergal wallace - May 09 2013 at 1:21PM)
The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics