quote:
Originally posted by CookieRevised
The proper syntax for a "return" statement is:
return <variable>;
and "value = Shell.RegRead(MsgPlus.ScriptRegPath + key)" is not a value but a statement on its own. So either you do:
var value = Shell.RegRead(MsgPlus.ScriptRegPath + key);
return value;
or simply:
return Shell.RegRead(MsgPlus.ScriptRegPath + key);
As I said, it doesn't work either...
The return thing gives an error not matter what I do.