 |
myrison Beginner
Joined: 10 Nov 2006 Posts: 22
|
Posted: Fri Jan 26, 2007 2:29 pm
Reset Single Variable to Default Value |
Hi all. I'm familiar with the #reset command to reset certain classes to their default, but is there a way to reset an individual variable to its default
Thank you. |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Jan 27, 2007 12:07 am |
Varname = defaultvalue
No nifty command like #RESET varname or anything like that. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
myrison Beginner
Joined: 10 Nov 2006 Posts: 22
|
Posted: Sat Jan 27, 2007 6:06 pm |
Thank you for the reply. I was hoping for a nifty command like you mentioned, but I can make it work this way as well.
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Jan 28, 2007 3:01 am |
I should have thought of it sooner.
Making a nifty command:
#ALIAS ResetVar {#VARIABLE %1 {%sess.GetVar(%1,%2).Default}}
The usage is ResetVar VariableName Class |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
|
|