howie_
13 years agoContributor
Referencing a variable's name
I'm trying to reference the name of a variable, for logging. I'd like to do something like this (in JScript):
var testVariable = 3;
Log.Message("Variable: " + testVariable.Name + "; value: " + testVariable);
Does anybody know how to do this?
var testVariable = 3;
Log.Message("Variable: " + testVariable.Name + "; value: " + testVariable);
Does anybody know how to do this?