APS Excellence in Physics Education Award
November 2019

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
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 - )
Re: Re: Resetting certain...   (fergal wallace - )
OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book